在sed命令和范围地址中使用不同的分隔符
/foo/bar
/baz/qux
s///
/
▶ sed 's//foo/bar//baz/qux//' FILE sed: 1: "s//foo/bar//baz/qux//": bad flag in substitute command: 'b'
foo/bar
baz/qux
▶ sed '/foo/bar/,/baz/qux/d' FILE sed: 1: "/foo/bar/,/baz/qux/d": undefined label 'ar/,/baz/qux/d'
慕森王