Create a gist now

Instantly share code, notes, and snippets.

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