I\'m trying to use SED to extract text from a log file. I can do a search-and-replace without too much trouble:
sed \'s/foo/bar/\' mylog.txt
Another work-around for sed on Mac OS X is to install gsedfrom MacPorts or HomeBrew and then create the alias sed='gsed'.
sed
gsed
sed='gsed'