Skip to content

Instantly share code, notes, and snippets.

@jasonqu
Created July 10, 2017 04:01
Show Gist options
  • Save jasonqu/ee992873ecbe6f7a4fb93e2815041761 to your computer and use it in GitHub Desktop.
Save jasonqu/ee992873ecbe6f7a4fb93e2815041761 to your computer and use it in GitHub Desktop.
shell commands
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