Skip to content

Instantly share code, notes, and snippets.

@MartinKnopf
Created August 20, 2013 08:25
Show Gist options
  • Save MartinKnopf/6278650 to your computer and use it in GitHub Desktop.
Save MartinKnopf/6278650 to your computer and use it in GitHub Desktop.
Replace string in files
for f in `find -name FILENAME`; do cat $f | sed 's/STRING1/STRING2/g' > tmp.txt; mv tmp.txt $f; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment