The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 07-15-2008
chaseeem chaseeem is offline
Registered User
  
 

Join Date: Jan 2008
Posts: 4
If the date on the file name is the same as the last modified time you may use.

find . -name '*.log' -mtime +90 -exec rm {} \;



-rw-r--r-- 1 owner group 10322 Jul 14 23:47 log.071408