Script to delete selected 60 days old files in Linux -
i have requirement delete 60+ days old files our growing linux server. there folders every month , files stored in it. want delete files monthly folder except december folder (named 2012_12). condition should put in script not find files in folder '%_12' ?
find /path/ -name '*_12' -prune -o -type f -mtime +59 -delete
Comments
Post a Comment