Useful tool: ack

I don't know how long ack has been around, but I only discovered it yesterday (via $tail -f findings.out). It does basically the same thing as the eternal paradigm:
$ find . -name \*.py | grep -v '.svn' | xargs grep 'my search string'

...only more maneuverable, and wrapped up in a shell script, plus highlighting and other good bits. It has a bunch of options I haven't really explored yet. It's looking like I can retire my collection of aliases (pyfind, jsfind, etc.).
Remember: no real man uses an IDE.


Post a Comment