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

Development

Development is not done on master. We use a dev branch named for the dev version of ack. If the current version is 2.00, then the next release version is 2.02, and our dev releases will be 2.0101, 2.0102, etc. Therefore, the branch will be "dev201".