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

1
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

1
cpan -i App::Ack

Once installed, just try some

1
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

1
ack-grep --thpppt

to exit your shell scripts:

Post to Twitter Post to Delicious Post to Digg Post to Reddit

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

This entry was posted in CLI and tagged , , . Bookmark the permalink.

12 Responses to ack: grep but better!

  1. Andy Lester says:

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

  2. by Immortal Curiosity says:

    Heh, feel free. It’s awesome!

  3. stu42j says:

    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!

  4. by Immortal Curiosity says:

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

  5. Craig Buchek says:

    The CPAN command requires 2 colons:

    cpan -i App::Ack

  6. @Craig Buchek: Thanks for the find! I thought I had that in place, guess not. Fixed now.

  7. Ankur Patwa says:

    I had to switch from Ubuntu to RHEL. I could not find how to install ack. This was helpful. Thanks!

  8. Awesome tool, thanks for the CentOS installation tip!

  9. Pingback: ack: grep but better! | tail -f findings.out « Nocturnal Realms

  10. Pingback: install ack gagal « devprg

  11. Pingback: Bag of useful Bash aliases and functions | tail -f findings.out

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>