在 MKS SED for Windows 上,这
TYPE Q:\temp\curtainssetspread.M3U | SED -E "/z/{s_a_b_}"
失败了
sed: garbage after command
为什么?
这种用法与文档正确一致:
a,b{ groups all commands until the next matching }, so that sed executes the entire group only if the { command is selected by its address(es).