The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



Thread: Find Command
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 01-31-2008
ynilesh's Avatar
ynilesh ynilesh is offline
Registered User
 

Join Date: Oct 2007
Location: Bangalore, India.
Posts: 174
find . -mtime +2 -print
Period (.) is for current directory. This will print all logs more than 2 days old.

if you want to move those files to some other directory use mv command with -exec.

Hope this will help you.
Reply With Quote