Created
July 3, 2015 15:12
-
-
Save asross/ff4c4f574c31d1c0e3a6 to your computer and use it in GitHub Desktop.
supersub
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
## replace all instances of $1 with $2 within $3. | |
function supersub { | |
ack -l "$1" "$3" | xargs perl -p -i -e "s/$1/$2/g" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment