Skip to content

Instantly share code, notes, and snippets.

@EragonJ
Created February 18, 2013 04:16
Show Gist options
  • Save EragonJ/4975103 to your computer and use it in GitHub Desktop.
Save EragonJ/4975103 to your computer and use it in GitHub Desktop.
use ack to search matched keywords and replaced by one-line perl
ack -l 'YOUR_KEYWORDS' | xargs perl -pi -E 's/YOUR_KEYWORDS/REPLACED_WORDS/g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment