Last active
November 24, 2016 13:42
-
-
Save jcarley/d15f90433c3592bb579592bd89f2daa2 to your computer and use it in GitHub Desktop.
Command line find and replace on Mac OSX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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