Hacker News
new
top
best
ask
show
job
How can I grep for lines containing foo AND bar, foo OR bar?
(
mywiki.wooledge.org
)
1 point
by
kamaraju
10 hours ago
1 comment
susam
9 hours ago
I have always done this with:
grep foo | grep bar
and
grep -E 'foo|bar'
I see the article mentions both solutions among several others.