Que*_*ark 2 shell grep search text-processing
通常grep
输出与模式匹配的任何行。我希望能够多次找到与模式匹配的行。例如,如果我的搜索模式是“foo”,那么:
foo bar # Would not be matched
foo foo bar # Would be matched
bar foofoo # Would be matched
foobarfoo # Would be matched
Run Code Online (Sandbox Code Playgroud)
有没有一种方法可以告诉我grep
只找到包含我的搜索模式的多个匹配项的行?
归档时间: |
|
查看次数: |
1710 次 |
最近记录: |