Script that will Delete and Maintain Files

view full story

http://www.unix.com – Hi guys, Good day to all and Happy New Year!!! Cheers!!! I hope anyone could help/suggest me on hot to create a script that will monitor the directory where files are being dumped. I have a script in CRON that runs everyday and collect for logs with a filename of Output_$(date +%Y%m%d_%H%M%S).log I hope I have also a script that will delete for the older logs and retain only let's say 3-day logs. For example: (under Directory, i have already 3 files) Code: Output_20111228_090500.log Output_20111229_090500.log Output_20111230_090500.log So tomorrow, if the script in collecting logs wil (HowTos)