Skip to content

Instantly share code, notes, and snippets.

@steve9001
Created February 7, 2014 16:10
Show Gist options
  • Save steve9001/8865892 to your computer and use it in GitHub Desktop.
Save steve9001/8865892 to your computer and use it in GitHub Desktop.
# supersub text_to_replace replacement_text directory
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