|
|
|
|
|
by lindgrenj6
3378 days ago
|
|
Definitely ack (https://beyondgrep.com/).
It basically is grep but designed for source code. First off it can be downloaded as a single file (Perl script FTW!), so easy to deploy. Secondly, by default it automatically searches recursively, prints out the filename, and line numbers of matches. It also uses PCRE for its regexes which is really nice. But by far the most time saving feature I have is the type searching functionality in it! For example, one can type 'ack --java System.out' and it will search ONLY the java files! No more 'find . -name *.java -exec grep -Hni System.out {} \;'.
And you can add custom types easily through your .ackrc, it is a very well put together piece of software. (PS: If you're trying it, definitely try out 'ack --bar') |
|
https://github.com/ggreer/the_silver_searcher