Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save meysampg/172cbe6a0704bb1a0ae75624d1bde0ce to your computer and use it in GitHub Desktop.
Save meysampg/172cbe6a0704bb1a0ae75624d1bde0ce to your computer and use it in GitHub Desktop.
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