[轉貼]Linux / Unix: Find Files Modified On Specific Date
Linux / Unix: Find Files Modified On Specific Date
How do I find out all files that have been modified on 2013-02-07 (07/Feb/2013) using find command under Linux / Apple OS X / *BSD and Unix like operating systems?
There are two ways to list files in given directory modified after given date of the current year. The latest version of GNU/find command use the following syntax:
Syntax
GNU/find latest version: find /path/to/dir -newermt "date" find /path/to/dir -newermt "Feb 07" find /path/to/dir -newermt "yyyy-mm-dd" ## List all files modified on given date find /path/to/dir -newermt yyyy-mm-dd ! -newermt yyyy-mm-dd -ls ### print all *.pl ### find /path/to/dir -newermt "yyyy-mm-dd" -print -type f -iname "*.pl"
Sample outputs:
The other way of doing this works on the versions of find before v4.3.3: