Created
November 22, 2015 23:11
-
-
Save SystemZ/e52c95f09ee507cd6d76 to your computer and use it in GitHub Desktop.
Remove old files in path
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
#http://www.howtogeek.com/howto/ubuntu/delete-files-older-than-x-days-on-linux/ | |
#remove files older than 30 days | |
find /path/to/files* -mtime +30 -exec rm {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment