I want to replace <title>
with <title>FRED
, using sed
. I have tried the below to no avail.
19:46: scratch $ sed -i '/<title>/<title>FRED/' index.html
sed: -e expression #1, char 10: unknown command: `<'
======================================================================================================================
19:47: scratch $ sed -i '/\<title>/<title>FRED/' index.html
sed: -e expression #1, char 11: unknown command: `<'
======================================================================================================================
19:48: scratch $ sed -i "/\<title>/<title>FRED/" index.html
sed: -e expression #1, char 11: unknown command: `<'
How then, do I escape the characters <
and >
correctly?
Or is it something else I'm not getting?