天天看点

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 ,如需转载请自行联系原作者

继续阅读