Skip to content

Instantly share code, notes, and snippets.

@hsaputra
Last active April 20, 2017 02:09
Show Gist options
  • Save hsaputra/8f874f3e822027a4ff81a6df3dc5ab17 to your computer and use it in GitHub Desktop.
Save hsaputra/8f874f3e822027a4ff81a6df3dc5ab17 to your computer and use it in GitHub Desktop.
Replace String in git
git grep -lz '0.2.0-SNAPSHOT' | xargs -0 perl -i'' -pE "s/0.2.0-SNAPSHOT/0.3.0-SNAPSHOT/g"
perl -pi -e 's/foo/bar/g' file.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment