0
<connector name="http" protocol="HTTP/1.1" scheme="http"
socket-binding="http"
enabled="false"/>
來代替簡單的XML標籤
<connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/>
如何能夠做到這一點使用sed命令
我試圖通過更換簡單的sed命令,因爲我是初學者使用
sed 's/connector name="http" protocol="HTTP\/1.1" scheme="http" socket-binding="http"/connector name="http" protocol="HTTP\/1.1" scheme="http" socket-binding="http" enable="false"' abcd.xml`
但我得到的消息
command garbled: s/connector name="http" protocol="HTTP\/1.1" scheme="http" socket-binding="http"/connector name="http" protocol="HTTP\/1.1" scheme="http" socket-binding="http" enable="false"