Created
February 18, 2013 04:16
-
-
Save EragonJ/4975103 to your computer and use it in GitHub Desktop.
use ack to search matched keywords and replaced by one-line perl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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