Friday, December 28, 2007

Ack, a better grep for coders in 3 easy steps

Ack has this nice colorized output when searching code files. Some may say that grep can do the same thing (it can), but there's no need for arg'ing it up with ack. There's a similar ruby version, rak, but I've heard it isn't quite as fast as ack. Ack works well enough for me and the install process isn't that painful.

There's two ways to install listed over at ack; I chose the CPAN route (since I never know when I'll need to install some more perl goodies).

How to install ack on Mac OS X leopard in 3 easy steps.
  1. install mac ports
  2. sudo port install perl5.8
  3. sudo cpan -i App::Ack

No comments: