2015年7月8日 星期三

[Linux] Execute other cmd from cmd 'find'

將目錄下所有size=0之檔案,調整其權限為777 "rwxrwxrwx"
find . -type f -size 0k -exec chmod 777 {} ;
Bash

將目錄下所有權限非777 "rwxrwxrwx"之檔案都列出
find . -type f ! -perm 777;
Bash

搜尋此網誌