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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -