
我想遞歸搜尋具有特定更改日期的文件。請注意,這不是訪問或修改日期,而是 輸出的更改日期stat
。
#stat prototype.js
File: `prototype.js'
Size: 175637 Blocks: 352 IO Block: 4096 regular file
Device: 803h/2051d Inode: 18146171 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 507/user) Gid: ( 505/user)
Access: 2016-11-03 04:54:05.000000000 -0500
Modify: 2016-01-06 03:38:54.000000000 -0600
Change: 2016-07-23 03:42:37.000000000 -0500
在我的具體情況下,我想查找更改日期為 2016-07-23 的所有文件。作業系統是 CentOS 版本 6.4。謝謝!
答案1
足夠的命令是:
find . -type f -newerct 2016-07-23 ! -newerct 2016-07-24