I need a simple unix utility that would allow me to search within files quickly and with basic parameters (this folder, not this kind of files...).
Currently I use a hand crafted find function with grep and many parameters. It's fast enought on small folders. The problem is that I mainly work with one folder which contains about 300k files and then it's too slow.
What I'm looking for is a small tool that would index the content of the files in this directory (text files) on demand and allow me to search within this index (and of course display the relative content).
What I'm looking for is Agent ransack for unix systems in CLI.
I would like, if possible, not to have to install much. Sphinx for example is too much of a hassle, I need a lightweight alternative.
Thanks for your suggestions.