Skip to content

Instantly share code, notes, and snippets.

@ovntatar
Created December 16, 2013 11:20
Show Gist options
  • Save ovntatar/7985576 to your computer and use it in GitHub Desktop.
Save ovntatar/7985576 to your computer and use it in GitHub Desktop.
Replace String
#!perl -s -i.bak -wpl
# Usage: change_file -old='old' -new='new' [f1 f2 ...]
s/$old/$new/g;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment