A search tool like grep, optimized for programmers.

# To find files containing "foo":
ack foo

# To find files in a specific language:
ack --ruby each_with_object

# To count the total number of matches for the term "foo":
ack -ch foo

# To show the file names containing "foo" and number of matches in each file:
ack -cl foo