Re:Why GNU grep is fast
by nprincigalli on Thursday March 31, 2011 @05:42PM
(#2393842)
Check out ack, tailored for programmers: http://betterthangrep.com/
[ Parent
| on HN ]
Re:Why GNU grep is fast
by TallGuyShort on Thursday March 31, 2011 @08:40PM
(#2394433)
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!
Textmate users should absolutely check out AckMate (https://github.com/protocool/AckMate), which runs circles around "find in project".
Generally speaking, matching regexpes using perl instead of grep is often a win :
perl -p -e 'm/regexp/' somefileThat will print the whole file regardless, I think you meant:
perl -ne 'print if /regex/' file