bash find files from last week code example Example: find files created in last 20 days find . -type f -mtime -30 -exec ls -l {} \; > last30days.txt