List and remove all files older than 30 days
- Posted by Arjun Raja
- On June 22, 2009
- 0 Comments
find /u01/local/logs -mtime +30 -exec ls -l {} \;
find /u01/local/logs -mtime +30 -exec rm {} \;
find /u01/local/logs -mtime +30 -exec ls -l {} \;
find /u01/local/logs -mtime +30 -exec rm {} \;
0 Comments