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