Yesterday I posted about a snazzy trick with ack, but people pinged me asking what ack is and why they should use it.
ack is the replacement I wrote for grep, aimed at large trees of heterogeneous code.
Using it will change your life, but why? Here's my top 10 list:
To install it, install the Perl module App::Ack. Your coding life will never be the same.
Visit the home page at
Re:Backup files
petdance on 2006-11-30T06:33:35
Send a note to the bug queue at bug-ack -at- rt.cpan.org
This isn't a bug report so much as a question: why does that ack info page list all of the switches but ack's documentation doesn't?
Re:Question
petdance on 2006-11-30T15:24:14
Tuit deficit. If anyone wants to help on that, I'd love it.
But the colour highlighting does look cool.
-Dom
Re:Zsh!
ferreira on 2006-11-30T11:26:08
Don't be so mean: zsh isn't for everyone out there. Remember the OS-impaired people. I know they (me among them) possibly can install a port of zsh, but installing ack is so much easier. And there is the portability issue Andy mentioned.
Disclaimer: installing ack is easy if you have a working setting for CPAN, which is not that hard.
Re:Zsh!
Dom2 on 2006-11-30T13:10:39
Well, there's always cygwin if you want bash or zsh under windows. It's not for everybody, but I find it to be a tolerable working environment when I'm in Windows.But I more just wanted to point out a feature that I use everyday. grep Foo **/*.pm is really handy and I think more people should use zsh and take advantage of these features!
-Dom
With a little exaggeration, I appreciate ack so much that I have adopted it with the same status of Unix utilities like grep, find, wc, etc. ack is brutally useful in daily development tasks.
The title of the comment is reminiscent to Andy's comment on corelist (which is much more Perl specific).
Re:OK, but first any help with grep --exclude?
arc on 2006-12-01T13:33:14
The current release of GNU grep can't do it.
The CVS tree has support for a new option
--exclude-dir
, which will allow you to put things like these into your$GREP_OPTIONS
environment variable:
--exclude-dir=blib
--exclude-dir=.svn
--exclude-dir=CVS
Though, that said, it's not clear to me how soon there'll be a release of GNU grep supporting that feature.
Re:OK, but first any help with grep --exclude?
petdance on 2006-12-01T13:54:30
Don't bother with the grep. Get ack to take care of it. It ignores.svn and blib, and you can use --perl to only find Perl files. I'm a happy camper
mr_bean on 2006-12-01T15:54:59
With:se grepprg=ack, I can use ack in vim, and avoid all the buffer list pollution with blib/lib files and backup files I had using grep.