Comment on Grep flags – the good stuffparentComments−danadam4yWith sed instead of grep, and probably not much better, but in a single command: cat hello | sed -n '/foo/{ /bar/{ /baz/ p }}'−ravoori4ywith awk: <hello awk '/foo/ && /bar/ && /baz/'
Comments
With sed instead of grep, and probably not much better, but in a single command:
with awk: <hello awk '/foo/ && /bar/ && /baz/'