Skip to content

Instantly share code, notes, and snippets.

@gerjantd
Created October 3, 2012 14:39
Show Gist options
  • Save gerjantd/3827264 to your computer and use it in GitHub Desktop.
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
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