我遇到如下情况: 我有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才会返回结果?