I`m trying to replace a html from several files using sed without sucess. I need to replace this:
<link rel='shortcut icon' href='/admin/img/favicons/favicon.ico' type='image/x-icon'>
with this:
<link rel="icon" href="/admin/img/logo.svg">
This is the last command i tried, but always gives errors:
#find . -type f -name "*.php" -exec sed -i'' -e 's/<link rel='shortcut\ icon' href='\/admin\/img\/favicons\/favicon.ico' type='image/x-icon'>/<link rel\="icon" href\="admin/img/logo.svg">/g' {} +
sed: -e expression #1, char 42: unknown option to `s'
can you please help?