Created
July 3, 2014 21:08
-
-
Save mrsweaters/e67de72e5ebbda0c3f87 to your computer and use it in GitHub Desktop.
unbuntu remove files older than X days
This file contains hidden or 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
| find /path/to/files* -mtime +5 -exec rm {} \; | |
| # five represents the number of days. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment