Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
wazoox
on April 1, 2011
|
parent
|
context
|
favorite
| on:
Why GNU grep is fast
Generally speaking, matching regexpes using perl instead of grep is often a win :
perl -p -e 'm/regexp/' somefile
chaosfox
on April 1, 2011
[–]
That will print the whole file regardless, I think you meant:
perl -ne 'print if /regex/' file
wazoox
on April 1, 2011
|
parent
[–]
Indeed :) Sorry for the mishap.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: