ack is a search tool designed for code. It's built to be a replacement for
grep with higher speed and more options.
To install the latest version, use homebrew.
$ brew install ack
- Skips unimportant files by default
- It searches recursively by default
$ ack [OPTION]... PATTERN [FILES OR DIRECTORIES]
pancakes in your project, with
ack it's as easy as
$ ack --js pancakes
Or you may want to find all files that does not contain the word brew
$ ack -L brew
You can customize
ack to behave the way you want it to, this configuration i
s stored in
For example, you can add a custom type to use as a flag when searching. The
following configuration will allow you to only search in
.markdown files using the
You can also tell ack to always sort and use colors in the result.
To see what configuration
ack uses you can use the
$ ack --dump
There's The Silver Surfer which describes itself as a
A code searching tool similar to
ack, with a focus on speed.