Thursday, December 3, 2009

ack

Finally a command line tool for windows which will recursively search for  some text from a given directory and to boot you can actually remember the syntax for  recursive searching.I never ever could remember the combination of find and grep that is needed to search recursively with grep.

Ladies and Gentlemen, Please welcome ack .

Here is the syntax for searching all the sub directories from the parent directory containing Java source files for something

ack --java pattern  //doh that was simple!


All I had to do to install was


Install Perl from here  http://strawberryperl.com/

Then type the below from my windows command prompt
C:\>cpan App::Ack

No comments: