linux中find查找指定时间段的文件并grep查找内容

find . -type f -newermt '2016-01-01 00:00:00' ! -newermt '2016-02-01 12:00:00' -exec grep aaaa {} \; > tmp.txt find -newerXY file/time:XY为占位符,a、B、m、c、t分别表明上次访问时间、建立时间、上次modify时间、上次索引节点改变时间和绝对时间;find根据
相关文章
相关标签/搜索