I\'ve successfully used the following sed command to search/replace text in Linux:
sed
sed -i \'s/old_link/new_link/g\' *
However,
Had the same problem in Mac and solved it with brew:
brew
brew install gnu-sed
and use as
gsed SED_COMMAND
you can set as well set sed as alias to gsed (if you want):
gsed
alias sed=gsed