Deleting files from O/S older than 6 hours

  • From: Ajay Thotangare <ajayoraclel@xxxxxxxxx>
  • To: oracle-l@xxxxxxxxxxxxx
  • Date: Tue, 27 Nov 2007 08:16:03 -0800 (PST)

Hi,
   
  I am using following command to delete files from o/s older than 24 hours.
  /usr/bin/find /u01/log/*.log -mtime +0 -exec ls -l {} \;
   
  Is there any way I can delete files older than 6 hours. I am using HP-UNIX. I 
tried using 
  /usr/bin/find /u01/log/*.log -mtime +0.4 -exec ls -l {} \;
  Above command does not work.
   
  Please help.
   
  regards,
  Ajay

       
---------------------------------
Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See how.

Other related posts: