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 UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 01-08-2008
pulkit pulkit is offline
Registered User
 

Join Date: Jan 2008
Posts: 8
command for deleting log files based on some condition

Hello,

Can anyone pls. provide me with the command for deleting files older then 15 days with a restriction to keep at least 5 files in a directory even if they are older then 15 days.

Any help will be highly appreciated.

Thanks,
Pulkit
Reply With Quote
Remove advertisements
!!
Forum Sponsor