News for hackers. Stuff that matters.
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/
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!
Re:Why GNU grep is fast by arnemart on Friday April 01, 2011 @04:11AM (#2395427)
Textmate users should absolutely check out AckMate (https://github.com/protocool/AckMate), which runs circles around "find in project".
Re:Why GNU grep is fast by wazoox on Friday April 01, 2011 @06:40AM (#2395722)
Generally speaking, matching regexpes using perl instead of grep is often a win :

    perl -p -e 'm/regexp/' somefile
Re:Why GNU grep is fast by chaosfox on Friday April 01, 2011 @08:21AM (#2395890)
That will print the whole file regardless, I think you meant:

       perl -ne 'print if /regex/' file
Re:Why GNU grep is fast by wazoox on Friday April 01, 2011 @11:15AM (#2396541)
Indeed :) Sorry for the mishap.