tail -f findings.out

« Wordpress contact forms and mailing made less complicated

Lost in a sea of terminals »

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

1
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:

Share and Enjoy:
  • email
  • LinkedIn
  • Slashdot
  • StumbleUpon
  • Technorati
  • Netvibes

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

Possibly Related (no promises):

  1. Useful grep incantations
  2. Useful Bash functions to determine OS and more

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

Tags: , ,
September 22, 2008 - 1:57 PM
7 comments »
Leave a reply

Subscribe without commenting

Twitter links powered by Tweet This v1.6.1, a WordPress plugin for Twitter.