Created
October 11, 2020 07:15
-
-
Save doi-t/8ecbb9da18262cfd66ebd9569eb7bdc0 to your computer and use it in GitHub Desktop.
Recursive search and replace in text files on Mac
This file contains hidden or 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 internal \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i'.original' -e 's/foo/bar/g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment