Monday, September 22, 2008

ack: grep but better!

I came across ack today, and now grep is sleeping outside. It's very much like grep, except it assumes all the little things that you always wanted grep to remember, but that it never did. It actually left the light on for you, and put the toilet seat down.

Anyway, there were some rough bits with installation. On Ubuntu, it is installed by sudo apt-get install ack-grep. If you think, hey, I will take the obvious path and install "ack"! You will be thinking with wrongitude. For ack is, in fact, a Kanji code converter, which I discovered after not a little anger. On RHEL, CentOS, and the like, you have to install with cpan -i App:Ack.

Once installed, just try some ack-grep STRING.
Want to ignore .svn dirs? It already did. Want to recursively search? It already did. And it brought over a bag of chips. Read the Top 10 for more goodies.

Oh, and don't forget to add ack-grep --thpppt to exit your shell scripts:

4 Comments:

Blogger Andy Lester said...

I'm glad you dig the ack. May I quote you on the ack homepage?

September 22, 2008 at 2:34 PM  
Blogger by Immortal Curiosity said...

Heh, feel free. It's awesome!

September 22, 2008 at 8:00 PM  
Anonymous Anonymous said...

It is really a shame about the naming conflict on Debian/Ubuntu. You are missing out on reason 13 from the Top 10 reasons to use ack instead of grep.

Command name is 25% fewer characters to type!

October 1, 2008 at 1:39 PM  
Blogger by Immortal Curiosity said...

I just removed the real "ack", and made an alias from "ack" to "ack-grep" :-)

October 1, 2008 at 9:31 PM  

Post a Comment

Subscribe to Post Comments [Atom]

<< Home