unix - sym3tri/dotfiles GitHub Wiki
recursive find & replace with directory exclusion (Mac):
find . -type f -not -path "./some-dir-to-exclude/*" -not -path "./another-dir-to-exclude*" -not -name ".DS_Store" -exec sed -i '' -e 's/find-text/replace-text/g' {} \;