Created
October 3, 2012 14:39
-
-
Save gerjantd/3827264 to your computer and use it in GitHub Desktop.
Shell: replace 'foo' with 'bar' in every java and xml file in folder tree
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
for f in `find . -type f -regextype awk -regex ".*/*.(xml|java)"`; do sed -i -e "s/foo/bar/g" $f; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment