Created
January 19, 2016 10:05
-
-
Save tjmw/c451004ccc98c4137e07 to your computer and use it in GitHub Desktop.
find + perl regexp with a capture
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 spec/renderers/ -type f -name '*.rb' -exec perl -p -i -e "s/loadPage\(\'(.*?)\'\)/loadPage('\1?client_bundle=abcde')/g" {} + |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment