The `sed` program on Mac is not a standard (GNU) one. To get the normal one, use brew:
brew install gnu-sed
After this, alter PATH. For example, add the following line to your `~/.bash_profile`:
PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"
And now you have a normal sed!
2 Comments