我是 sed
的新手,我有以下问题。在这个例子中:
some text here
blah blah 123
another new line
some other text as well
another line
我想删除除了包含字符串‘ text’还有或字符串‘ brah’的行之外的所有行,因此我的输出文件如下所示:
some text here
blah blah 123
some other text as well
有什么提示可以使用 sed
实现这一点吗?