Skip to content

Instantly share code, notes, and snippets.

@jweaver
Last active December 21, 2015 21:39
Show Gist options
  • Save jweaver/6369351 to your computer and use it in GitHub Desktop.
Save jweaver/6369351 to your computer and use it in GitHub Desktop.
Perl pie. Replace strings across files.
$ perl -pi -e '<some replacement regular expression>' <file or files>
# Example
$ perl -pi -e 's/src/build/g' *
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment