Created
February 29, 2012 15:21
-
-
Save u1tnk/1941518 to your computer and use it in GitHub Desktop.
grep and replace by ruby oneliner
This file contains 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
find . -name "*.xml" -print0 | xargs -0 ruby -i -p -e '$_.gsub! %r{hoge}, "fuga"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment