I\'ve successfully used the following sed command to search/replace text in Linux:
sed
sed -i \'s/old_link/new_link/g\' *
However,
This works with both GNU and BSD versions of sed:
sed -i'' -e 's/old_link/new_link/g' *
or with backup:
sed -i'.bak' -e 's/old_link/new_link/g' *
Note missing space after -i option! (Necessary for GNU sed)
-i