Skip to content

Instantly share code, notes, and snippets.

@mckelvin
Created January 5, 2022 04:57
Show Gist options
  • Save mckelvin/1b996695ffbf57f9671b7963afe6261a to your computer and use it in GitHub Desktop.
Save mckelvin/1b996695ffbf57f9671b7963afe6261a to your computer and use it in GitHub Desktop.
#!/bin/sh
ag -0 -l $1 | xargs -0 perl -pi -e "s/$1/$2/g"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment