I want to replace a URL present in an html file for the shortcut icon, using c. I use sed to replace the url but the command is giving an error as it can't read the icon even if the icon is present at the specified location.
If I manually replace the URL, it's working fine.
My command is:
sed -i '/<link id=/c\\<link id='test' rel='shortcut icon' href='path_of_icon' type='image/x-icon'/>' path_of_html_file
'
so shell mix content and interpretations
for replacment order/
as separtor of pattern but/
is also in your pattern