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根據
相關文章
相關標籤/搜索