Skip to content

Instantly share code, notes, and snippets.

@jcarley
Last active November 24, 2016 13:42
Show Gist options
  • Save jcarley/d15f90433c3592bb579592bd89f2daa2 to your computer and use it in GitHub Desktop.
Save jcarley/d15f90433c3592bb579592bd89f2daa2 to your computer and use it in GitHub Desktop.
Command line find and replace on Mac OSX
# Find and replace. Case insenstive. This searchs for elixir files
grep --color -Rl --include=*.{yml,exs,ex,eex} "searchstring" . | xargs sed -i "" 's/searchterm/replaceterm/g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment