//View Tip #199
» Mass-renaming files
» Find and Grep
» Random mass-rename
» List only the files that have been updated today.
Similar Tips
» Find files by mime-type» Mass-renaming files
» Find and Grep
» Random mass-rename
» List only the files that have been updated today.
Latest tips by RSS
Click here to subscribe
Follow Shell-Fu on Twitter
Click here to follow
Follow Shell-Fu on identi.ca
Click here to follow
When specifying time with find options such as -mmin (minutes) or -mtime (24 hour periods, starting from now), you can specify a number n to mean exactly n, -n to mean less than n, and +n to mean more than n. 2 For example:
find . -mtime -1 # find files modified within the past 24 hours find . -mtime 1 # find files modified between 24 and 48 hours ago find . -mtime +1 # find files modified more than 48 hours ago find . -mmin +5 -mmin -10 # find files modifed between 5 and 10 minutes ago
Comments
Add your comment
No Comments

