Skip to content

Instantly share code, notes, and snippets.

@NikitaAvvakumov
Created October 2, 2017 11:43
Show Gist options
  • Save NikitaAvvakumov/edd384014960760daa1dcd901960e51a to your computer and use it in GitHub Desktop.
Save NikitaAvvakumov/edd384014960760daa1dcd901960e51a to your computer and use it in GitHub Desktop.
# macOS
for f in `ag -l <target> [path]`; do sed -i '' -e 's/<target>/<replacement>/' $f; done
# Linux
for f in `ag -l <target> [path]`; do sed -i'' -e 's/<target>/<replacement>/' $f; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment