※ 引述《piglon (TEST123)》之銘言:
: 請問一下
: 我現在有一堆用數字當檔名的文字檔
: 分別在00到99的資料夾內
: 如果我想要刪除檔名在5000以上的檔案
: 我該怎麼做
: 我只會建立不會刪~"~
: 感謝
find -type f | while read f; if [ ${f} -gt 5000 ] && echo ${f}; done
確認了檔案名後把echo改成rm。
--
In heaven, all the interesting people are missing.
--
: 請問一下
: 我現在有一堆用數字當檔名的文字檔
: 分別在00到99的資料夾內
: 如果我想要刪除檔名在5000以上的檔案
: 我該怎麼做
: 我只會建立不會刪~"~
: 感謝
find -type f | while read f; if [ ${f} -gt 5000 ] && echo ${f}; done
確認了檔案名後把echo改成rm。
--
In heaven, all the interesting people are missing.
--
All Comments