Wednesday, December 24, 2014

source code search tool ag

1- download the_silver_searcher from https://github.com/ggreer/the_silver_searcher/archive/master.zip

2- unzip the file and build it

$ unzip the_silver_searcher-master.zip
$ cd the_silver_searcher-master/
$ ./build.sh

3- use it
$ ./ag [FILE-TYPE] [OPTIONS] PATTERN [PATH]

ex:

search all source file in the directory contenting word "print"

$./ag print


No comments:

Post a Comment