Created
January 9, 2014 19:09
-
-
Save blasterpal/8340038 to your computer and use it in GitHub Desktop.
find and replace with sed using find
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
| for FILE in `find . -type f -name *.rb`; do | |
| sed -i '' 's/old-method/new_method/g' $FILE | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment