Created
November 6, 2012 10:22
-
-
Save jiceb/4023889 to your computer and use it in GitHub Desktop.
Recursive Delete file type in Linux
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
| 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