Skip to content

Instantly share code, notes, and snippets.

@thebouv
Created February 19, 2015 15:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thebouv/0839b575a2cccafac44a to your computer and use it in GitHub Desktop.
Save thebouv/0839b575a2cccafac44a to your computer and use it in GitHub Desktop.
Perl one-liner to regex replace string stuff on file(s)
perl -pi -e 's/you/me/g' file
# works with *html or any extension to do all in current directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment