Skip to content

Instantly share code, notes, and snippets.

@dubcl
Last active March 15, 2018 17:54
Show Gist options
  • Save dubcl/096d92811b417b5cc5134811fda7a4af to your computer and use it in GitHub Desktop.
Save dubcl/096d92811b417b5cc5134811fda7a4af to your computer and use it in GitHub Desktop.
find older than and delete
find /foo/ -type f -mtime +7 -name '*.gz' -exec rm -f {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment