|
#find . -name *.log* -mtime +90 -exec rm {} \;
but before that get a listing to see what you are about to delete
#find . -name *.log.* -mtime +90 -exec ls -tl {} \;
Search and remove is a potentially dangerous command make sure you are in the directory where you are deleting files find . means present directory
|