Skip to content

Instantly share code, notes, and snippets.

@jiceb
Created November 6, 2012 10:22
Show Gist options
  • Select an option

  • Save jiceb/4023889 to your computer and use it in GitHub Desktop.

Select an option

Save jiceb/4023889 to your computer and use it in GitHub Desktop.
Recursive Delete file type in Linux
cd /folder
# To get a confirmation for every file use:
find . -type f -name "*.bak" -exec rm -i {} \;
#To just delete all of a file type without a confirmation use:
find . -type f -name "*.bak" -exec rm -f {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment