此命令运行良好:
$ sed -e '/foo/{g; d}' myfile
但是这个有一个错误:
$ sed -e '/foo/{g; a bar}' myfile sed: -e expression #1, char 0: unmatched `{'
它出什么问题了?
sed
sed ×1