刪除檔名為數字的檔案 - Linux

By Annie
at 2011-10-26T13:26
at 2011-10-26T13:26
Table of Contents
※ 引述《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.
--
Tags:
Linux
All Comments

By Mia
at 2011-10-29T05:26
at 2011-10-29T05:26

By Frederica
at 2011-11-02T06:58
at 2011-11-02T06:58

By Quanna
at 2011-11-02T19:34
at 2011-11-02T19:34

By Cara
at 2011-11-04T19:30
at 2011-11-04T19:30

By Todd Johnson
at 2011-11-08T16:32
at 2011-11-08T16:32

By Jacob
at 2011-11-09T03:39
at 2011-11-09T03:39

By Quanna
at 2011-11-10T23:00
at 2011-11-10T23:00

By Anthony
at 2011-11-11T14:31
at 2011-11-11T14:31
Related Posts
自動還原問題

By Connor
at 2011-10-25T23:18
at 2011-10-25T23:18
自動還原問題

By Gilbert
at 2011-10-25T22:26
at 2011-10-25T22:26
只要開了星海就不能聽音樂

By Rae
at 2011-10-25T21:23
at 2011-10-25T21:23
請問一下大家 cross compiler

By John
at 2011-10-25T20:48
at 2011-10-25T20:48
自動還原問題

By Dorothy
at 2011-10-25T19:50
at 2011-10-25T19:50