天天看點

centos中查找某一段時間的檔案

用find的-newer參數

例如要删除目前目錄下2014年3月份的檔案

建立兩個檔案:

touch -t 201402282359 file1

touch -t 201404010000 file2

find . -newer file1 ! -newer file2 | xargs ls -al]

本文轉自月魔zhi蕾51CTO部落格,原文連結:http://blog.51cto.com/308107405/1415380 ,如需轉載請自行聯系原作者

繼續閱讀