Find files modified less than X days ago
Using GNU Findutils one can search for all files modified in the last N days.
find ~ -name '*.txt' -type f -mtime -60
-name "*.txt"
- You need to enclose in quotes " " to avoid the shell expanding the asterisk into a giant list of files. This parameter is optional
-type f
- save time by searching only files, not directories (especially helpful the other way around where you want only directories)
-mtime -60
- searches for files modified within the last 60 days (not older files)