Monday, November 16, 2015

Linux: Delete Files Older than x number of days

Delete files older than x number of days (in my case 5 days)

find /temp -type f -name '*.dmp' -mtime +5 -exec rm -rf {} \;

No comments: