Created
May 15, 2009 21:56
-
-
Save aczid/112457 to your computer and use it in GitHub Desktop.
Four ways to use find with rm
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
rm `find . -name foo` | |
find . -name foo | xargs rm | |
find . -name foo -exec rm {} \; | |
for i in `find . -name foo`; do rm $i; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment