I need to change a single line in the file /opt/google/chrome/google-chrome
exec -a "$0" "$HERE/chrome" "$@"
to
exec -a "$0" "$HERE/chrome" "$@" --test-type --no-sandbox
So my command is:
sed -i 's/exec -a "$0" "$HERE/chrome" "$@"/exec -a "$0" "$HERE/chrome" "$@" --test-type --no-sandbox/' /opt/google/chrome/google-chrome
Which returns:
sed: -e expression #1, char 37: unknown option to `s'
I have searched and found that characters in the command are confusing sed, but I can't seem to find an answer to which ones or how to form it properly. Can anyone help me to edit my command to the proper syntax?