我们如何使用grep搜索munltiple模式?

时间:2015-09-02 07:59:58

标签: grep

我遇到如下情况: 我有4种模式,如:

home page            -- can be in any line
libraries and STLs   -- can be in any line
Windows  Cygwin      -- These two words should be on the same line
xmlwriter.cpp        -- can be in any line

如何编写grep以便只有在输入文件中存在所有模式时grep才会返回结果?

0 个答案:

没有答案