Skip to content

Instantly share code, notes, and snippets.

@aczid
Created May 15, 2009 21:56
Show Gist options
  • Save aczid/112457 to your computer and use it in GitHub Desktop.
Save aczid/112457 to your computer and use it in GitHub Desktop.
Four ways to use find with rm
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