我在 File.XML 中有以下文本:
<http-listener name="default" socket-binding="http" max-post-size="1073741824" />
我想用
<!-- <http-listener name="default" socket-binding="http" max-post-size="1073741824" /> -->>
我试过了
sed -i 's/<http-listener name="default" socket-binding="http" max-post-size="1073741824" /><!-- <http-listener name="default" socket-binding="http" max-post-size="1073741824" /> -->>' test.xml
但是出现错误