Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
nprincigalli
on March 31, 2011
|
parent
|
context
|
favorite
| on:
Why GNU grep is fast
Check out ack, tailored for programmers:
http://betterthangrep.com/
TallGuyShort
on April 1, 2011
|
next
[–]
For vi users, I recommend this plugin:
https://github.com/mileszs/ack.vim
. I like it better than simply replacing grep with ack. This has made me a lot more productive, as I can do complex searches MUCH faster!
arnemart
on April 1, 2011
|
prev
|
next
[–]
Textmate users should absolutely check out AckMate (
https://github.com/protocool/AckMate
), which runs circles around "find in project".
wazoox
on April 1, 2011
|
prev
|
next
[–]
Generally speaking, matching regexpes using perl instead of grep is often a win :
perl -p -e 'm/regexp/' somefile
chaosfox
on April 1, 2011
|
parent
|
next
[–]
That will print the whole file regardless, I think you meant:
perl -ne 'print if /regex/' file
wazoox
on April 1, 2011
|
root
|
parent
|
next
[–]
Indeed :) Sorry for the mishap.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: