Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Check out ack, tailored for programmers: http://betterthangrep.com/


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/' somefile


That will print the whole file regardless, I think you meant:

       perl -ne 'print if /regex/' file


Indeed :) Sorry for the mishap.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: