I am trying to use sed
to replace the expression 'root'@'localhost'
with 'root'@'%'
with no success. Could someone please help me with the command?
I tried the following:
sed -i ’s#\’root\’@\’localhost\’#\’root\’@\’%\’#g’ xyz.sql
sed: -e expression #1, char 1: unknown command: `?'
sed -i -e ’s/localhost/%/g’ xyz_2616.sql
sed: -e expression #1, char 1: unknown command: `?'