我是sed
的新手,我有以下问题。在这个例子中:sed删除行不包含特定字符串
some text here
blah blah 123
another new line
some other text as well
another line
我要删除除包含任何字符串“文本” 和或字符串“嗒嗒”的所有行,所以我的输出文件看起来像这样:
some text here
blah blah 123
some other text as well
任何提示如何使用sed
来完成?
必由之路答案用sed? grep会很容易地做到这一点。 – Tim 2012-03-02 23:48:06