Skip to content

Instantly share code, notes, and snippets.

@ipan
Created January 18, 2018 01:22
Show Gist options
  • Save ipan/4060168f2adbe3f10402889ad8b8c60a to your computer and use it in GitHub Desktop.
Save ipan/4060168f2adbe3f10402889ad8b8c60a to your computer and use it in GitHub Desktop.
sed (Mac OS X / Darwin) #sed #mac #darwin

search and replace

sed -e 's:origin:github:' -i .orig .git/config

find all config

find . -name config -depth 1 -exec sed -e 's:origin:github:' -i .orig {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment