Created
January 2, 2020 08:50
-
-
Save bisignam/d3c7fff3f7676868692f4091361674d6 to your computer and use it in GitHub Desktop.
Bash: remove directories older than X days
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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