I am trying to install GNU sed. Following this post I did
brew install gnu-sed
A priori it went fine, but then the command gsed
is not found. I could not find any gnu-sed
(or equivalent) in /usr/local/bin/
except the standard sed
.
I am on Mac OS X 10.11.3
find
to find it. In Terminal, use the following command:find /usr -type f -name *sed
gnu
, I found/usr/local/Cellar/gnu-sed/4.2.2/bin/sed
. Should I just move this file to/usr/local/bin/
? Thanks/usr/bin/sed
, so I see no reason why you can't copy/move the GNU version to/usr/local/bin/
. That said, depending on which is in yourPATH
first is the one that going to run if you don't do something to differentiate the two. Maybe call the GNU versiongsed
.sed
togsed
to rename the command?sed
and both are in thePATH
, then one is going to run over the other based on thePATH
. If you don't understand what I'm saying, then you need to do some Googling.