I've successfully used the following
sed -i 's/old_link/new_link/g' *
"command c expects \ followed by text"
sed -i 's/hello/gbye/g' *
If you use the -i option you need to provide an extension for your backups.
If you have:
sed -i '.original' 's/old_link/new_link/g' *
create 2 backup files like:
There is no portable way to avoid making backup files because is impossible to find a mix of sed commands that works on all cases:
sed -i -e ...- doe not work on OS X as it creates
sed -i'' -e ...- does not work on OS X 10.6 but works on 10.9+
sed -i '' -e ...- not working on GNU