Sunday, December 18, 2011

to clear files (like logs) older than a year


find . -type f -mtime +365 -exec rm {} \;

No comments:

Post a Comment