Skip to content

Instantly share code, notes, and snippets.

@dashmug
Created June 24, 2013 19:33
Show Gist options
  • Save dashmug/5852821 to your computer and use it in GitHub Desktop.
Save dashmug/5852821 to your computer and use it in GitHub Desktop.
Search and replace text in a directory
perl -pi -w -e 's/SEARCH_FOR/REPLACE_WITH/g;' *.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment