-
-
Save im6e/9225054 to your computer and use it in GitHub Desktop.
sed w/ grep on Mac
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
grep -lr {before} * | egrep -v "{exclude_file_1}|{exclude_file_2}|{exclude_file_3}" | xargs sed -i '' -e 's/{before}/{file}/g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment