Skip to content

Instantly share code, notes, and snippets.

@asross
Created July 3, 2015 15:12
Show Gist options
  • Save asross/ff4c4f574c31d1c0e3a6 to your computer and use it in GitHub Desktop.
Save asross/ff4c4f574c31d1c0e3a6 to your computer and use it in GitHub Desktop.
supersub
## 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