Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
danadam
· 4y ago · 0 comments
With
sed
instead of
grep
, and probably not much better, but in a single command:
cat hello | sed -n '/foo/{ /bar/{ /baz/ p }}'
Comments
[–]
ravoori
4y ago
with awk: <hello awk '/foo/ && /bar/ && /baz/'