Created
July 10, 2017 04:01
-
-
Save jasonqu/ee992873ecbe6f7a4fb93e2815041761 to your computer and use it in GitHub Desktop.
shell commands
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
https://stackoverflow.com/questions/13489398/delete-files-older-than-10-days-using-shell-script-in-unix | |
Delete files older than 10 days using shell script in Unix | |
``` | |
find ./my_dir -mtime +10 -type f -delete | |
``` | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment