找出「不包含某個檔案」的「目錄名稱」 2012-10-15 17:25
/ / /
找出「不包含某個檔案」的「目錄名稱」
範例:
要找出「photos.dat 遺失」的 John's Gallery data folder
代碼:
find /home/john/public_html/gallery/data/ -type d -execdir bash -c 'ls {}/*photos.dat >/dev/null 2>&1 || pwd' \;
出處:
http://www.linuxquestions.org/questions/linux-server-73/find-a-folder-not-containing-a-specific-file-668505/
________________
美術插畫設計案子報價系統 v0.1 Beta
爪哇禾雀



