Just need help on a cronjob task i need to do for housekeeping my Centos file system. I have an application that backups an app database twice a day and these backup files have started accummulating in our /root/backup directory like so.....
I just need help with a PERL script that I can include in a cron job so that it will automatically delete files with file names that have the date of exactly 7 days ago. In the case of the example above, if today were 24 May 2013, I want the cron job to delete only files MYAPP.db.backup.17-May-201
3* but leave the other dates untouched.
Any help would be appreciated.