編集メニュー > 新規作成 編集 コピー 名前の変更 凍結 アップロード 添付ファイル一覧 バックアップ

find

あるディレクトリ以下の特定の拡張子のファイルの一覧をファイルに保存

find ./ -type f -name "*.txt" | tee temp.txt

消す場合はこれ。(要注意!)

find /hogehoge -type f -name "*.bak" -delete

あるサイズ以上のファイルの一覧

find ./ -type f -size +1G -print
find ./ -type f -size +1000M -fprint temp.txt
find ./ -type f -size +1G -exec ls -sh {} \;