Skip to content

Instantly share code, notes, and snippets.

@leandrosilva
Created August 28, 2009 22:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leandrosilva/177293 to your computer and use it in GitHub Desktop.
Save leandrosilva/177293 to your computer and use it in GitHub Desktop.
A text replacement script
for i in `find . -type f -name "*" | grep -v "*.jar"`; do echo $i | tee -a log.txt; cat $i | sed s/textoAntigo/textoNovo/g > x; cat x > $i; rm x; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment