Created
May 17, 2020 11:28
-
-
Save meysampg/172cbe6a0704bb1a0ae75624d1bde0ce to your computer and use it in GitHub Desktop.
This file contains hidden or 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
FILTER="-3" # newer that 3 days | |
FILTER="3" created on 3 days ago | |
FILTER="+3" # older than 3 days | |
FOLDER="." # current directory | |
find $FOLDER -mtime $FITLER -type d -exec rm -rf {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment