Skip to content

Instantly share code, notes, and snippets.

@fergbrain
Created August 16, 2014 20:34
Show Gist options
  • Save fergbrain/8ddda2108dbc497e9f6b to your computer and use it in GitHub Desktop.
Save fergbrain/8ddda2108dbc497e9f6b to your computer and use it in GitHub Desktop.
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