The Silver Searcher

The Silver Searcher, also known as Ag, is a clone of Ack written by Geoff Greer in C for speed. Ack is quite slow on large codebases since it uses Perl. I found Ag to be significantly faster on my code and switched to it.

Installing it is easy:

$ sudo apt install silversearcher-ag

Using it is similar to Ack:

$ ag foobar

To add a certain file to be ignored, add it to .agignore:

# This is ~/.agignore
someuselessfilename

Tried with: Ag 0.19.2 and Ubuntu 14.04

One thought on “The Silver Searcher”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s