Created
March 7, 2017 07:14
-
-
Save ivankristianto/f37d7bd0c39d9f3a80667c6f13c441c9 to your computer and use it in GitHub Desktop.
Delete file with last modified
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
find /path-to-directory -mtime +5 -exec rm -f {} \; | |
find /path-to-directory -mtime +5 -exec ls -l {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment