我想替换
<title>
具有
<title>FRED
,使用
sed
. 我试过下面的方法,但没有成功。
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: `<'
那么,我该如何逃脱角色
<
和
>
正确地?
或者是我没有得到的其他东西?