9ncpcg
Last Updated: February 25, 2016
·
1.085K
· pierre-o
Myself

Fed up of Mac os "sed"

You are 2 steps away of getting rid of these weird behaviours...

brew install gnu-sed
ln -s /usr/local/bin/gsed /usr/local/bin/sed
Say Thanks
Respond

2 Responses
Add your response

9645
9b197571b0eb5e2fbfaf2cee5afabc8a

I've wanted to set up that symlink for a while (it's annoying to always be modifying scripts to use gsed instead of sed) but I was worried some OSX system script somewhere would fail because it expected some OSX-sed-specific behaviour.

Have you noticed any of those types of problems since setting this up?

over 1 year ago ·
9657
Myself

No, not yet.

But the issue I found is that you can't share script with mac community, but you can with the linux community. It's more a feature than a bug in my opinion!

over 1 year ago ·
Filed Under