sed条件不修改匹配

sed '/^echo/!s/text/subtext/g'

若是是以echo开始行首的行就不进行替换。linux

参考sed substitution conditionalspa

相关文章
相关标签/搜索