Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== Remove files older than ====== <code bash> # You want to find and remove tar.bz2 and tar.gz files older than 30 days find . -name "*.tar.*" -mtime +30 -exec rm {} \; # Same thing, but limit only to the current directory find . -maxdepth 1 -name "*.tar.*" -mtime +30 -exec rm {} \; </code> docs/bash/remove_files_older_than.txt Last modified: 2011/12/29 15:47by billh