Last active
August 29, 2015 14:23
-
-
Save rhardih/de7c9bbfee2b759021f9 to your computer and use it in GitHub Desktop.
Cleanup stuff in ~/Downloads/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0 12 * * * find ~/Downloads/ -mtime +7 -maxdepth 1 -exec rm -rf {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Updated to avoid using xargs, which didn't work for filenames with spaces.