Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
nene
· 13y ago · 0 comments
Maybe it's because you can write the latter also with plain grep:
grep 'silver.*needle' haystack
Comments
[–]
Firehed
13y ago
That assumes that "silver" will appear
before
"needle", which may not always be the case. `grep needle file | grep silver` gets you lines containing both "silver" and "needle" but not necessarily in that order.