Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
nene
on Dec 24, 2012
|
parent
|
context
|
favorite
| on:
Use ack instead of grep to parse text files
Maybe it's because you can write the latter also with plain grep:
grep 'silver.*needle' haystack
Firehed
on Dec 24, 2012
[–]
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.
Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: