On Yosemite. The sed is old: does not understand
\t for example. I installed
coreutils and can not find any
sed associated with same.
What are my options here?
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.Sign up to join this community
You need to install
gnu-sed, not just the coreutils:
brew install gnu-sed
Then, you have to add the following lines on your
export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH" export MANPATH="/usr/local/opt/gnu-sed/libexec/gnuman:$MANPATH"
sed version should be the latest:
$ sed --version sed (GNU sed) 4.2.2 Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Jay Fenlason, Tom Lord, Ken Pizzini, and Paolo Bonzini. GNU sed home page: <http://www.gnu.org/software/sed/>. General help using GNU software: <http://www.gnu.org/gethelp/>. E-mail bug reports to: <firstname.lastname@example.org>. Be sure to include the word ``sed'' somewhere in the ``Subject:'' field.
Install fink . You will also need XCode if you haven't got it already.
Then install the latest sed (and lots of other useful things) like this:
fink install sed