Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fduran/11400587 to your computer and use it in GitHub Desktop.
Save fduran/11400587 to your computer and use it in GitHub Desktop.
# www.fduran.com
# delete files in a folder older than a number of days (100 for example)
find /path/to/folder -mtime +100 -exec rm -f {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment