Skip to content

Instantly share code, notes, and snippets.

@RIAstar
Created August 17, 2013 14:45
Show Gist options
  • Save RIAstar/6257229 to your computer and use it in GitHub Desktop.
Save RIAstar/6257229 to your computer and use it in GitHub Desktop.
[shell] recursively delete file type
#with confirmation
find . -type f -name "*.tmp" -exec rm -i {} \;
#without confirmation
find . -type f -name "*.tmp" -exec rm -f {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment