Skip to content

Instantly share code, notes, and snippets.

@bisignam
Created January 2, 2020 08:50
Show Gist options
  • Save bisignam/d3c7fff3f7676868692f4091361674d6 to your computer and use it in GitHub Desktop.
Save bisignam/d3c7fff3f7676868692f4091361674d6 to your computer and use it in GitHub Desktop.
Bash: remove directories older than X days
find . -mtime +10 -type d -exec rm -rf {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment