Skip to content

Instantly share code, notes, and snippets.

@tjmw
Created January 19, 2016 10:05
Show Gist options
  • Save tjmw/c451004ccc98c4137e07 to your computer and use it in GitHub Desktop.
Save tjmw/c451004ccc98c4137e07 to your computer and use it in GitHub Desktop.
find + perl regexp with a capture
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