Created
February 18, 2011 08:04
-
-
Save orientalperil/833404 to your computer and use it in GitHub Desktop.
use ack and sed to find and replace
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 --print0 -irl 'replace_me' location/ | xargs -0 -L1 sed -i '' 's/replace_me/with_me/g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment