Skip to content

Instantly share code, notes, and snippets.

@vladignatyev
Created July 26, 2015 18:10
Show Gist options
  • Save vladignatyev/7051cb9262365bd7d8ca to your computer and use it in GitHub Desktop.
Save vladignatyev/7051cb9262365bd7d8ca to your computer and use it in GitHub Desktop.
Remove files and directories older than 7 days
find . -mtime +7 -exec rm -rf {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment