Skip to content

Instantly share code, notes, and snippets.

@kitwalker12
Created May 9, 2016 18:39
Show Gist options
  • Save kitwalker12/29cc411e66eb6a297ba2fae09cee925c to your computer and use it in GitHub Desktop.
Save kitwalker12/29cc411e66eb6a297ba2fae09cee925c to your computer and use it in GitHub Desktop.
replace words in all files on Mac OSX
LC_ALL=C find ./ -name "{filter}" -type f -exec sed -i '' -e 's/{old-word}/{new-word}/g' {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment