ack 2.0 is a text searching utility optimized for searching trees of source code.

Incompatibilities with ack 1.x

ack 2 makes some big changes in its behaviors that could trip up users who are used to the idiosyncracies of ack 1.x. These changes could affect your searching happiness, so please read them.

To search files with filename matching "sales" for the string "foo":

ack -g sales | ack -x foo

New features in ack 2.0

ack 2.0 will:

Building

# Required
perl Makefile.PL
make
make test
sudo make install # for a system-wide installation (recommended)
# - or -
make ack-standalone
cp ack-standalone ~/bin/ack2 # for a personal installation