Created
July 21, 2015 18:14
-
-
Save djburdick/af370b1344b1f15f1159 to your computer and use it in GitHub Desktop.
Search and replace command line. #linux
This file contains hidden or 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 '*rb' -type f -exec perl -pi -e 's/OldClassName(?!\w)/NewClassName/g;' \{\} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment