Skip to content

Instantly share code, notes, and snippets.

@fergbrain fergbrain/cron
Created Aug 16, 2014

Embed
What would you like to do?
Cleanup Downloads folder once a week
0 0 * * * find ~/Downloads -type f -maxdepth 1 -mtime +7 -exec rm {} \;
0 0 * * * find ~/Downloads -type d -maxdepth 1 -mtime +7 -exec rm -r {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.