Created
February 10, 2015 16:03
-
-
Save dmitrinesterenko/1eff031f5cc50fed6407 to your computer and use it in GitHub Desktop.
Do something to files that are x days old
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/folder -mtime +2 -exec rm -f {} \; | |
find /path/to/folder -mtime +2 -exec custom_command.sh {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment