Created
May 3, 2018 15:33
-
-
Save mujahidk/b418d30ad67818b78be23727d33ef324 to your computer and use it in GitHub Desktop.
Find files older than 7 days and remove.
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
# WARNING! Make sure you are in right directory. | |
find -type f -mtime +7 -exec rm -f {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment