标签:
sed ‘/^echo/!s/text/subtext/g‘
如果是以echo开始行首的行就不进行替换。
参考sed substitution conditional
sed条件不修改匹配
原文地址:http://www.cnblogs.com/getong/p/5147314.html