5 ms·
If you use grep a lot, you should be using 'ag' (Silver Searcher): http://geoff.greer.fm/ag/ http://geoff.greer.fm/ag/
by jasonpeacock 10y ago
If you use grep a lot, you should be using 'ag' (Silver Searcher): http://geoff.greer.fm/ag/ http://geoff.greer.fm/ag/
- happyslobro 10y agoOr ack (http://beyondgrep.com http://beyondgrep.com)
- kazinator 10y agoIf you use grep a lot over a code base, you should index it with "mkid" and use "lid" (gnu id-utils). Quasi-instant results.
- mastre_ 10y agoAbsolutely, more or less grep -> ack -> ag. Be warned tho, sometimes ag (and IIRC ack as well, but haven't used it in a while since switching to ag) won't find some results due to its default filtering rules even tho certain results should be included. For critical things, I end up double-checking results w/ grep -r which always finds everything, no questions asked.