linux - How to index text files to improve grep time -
i have large number of text files need grep through on regular basis.
there ~230,000 files amounting around 15gb of data.
i've read following threads:
- how use grep efficiently?
- how use grep large (millions) number of files search string , result in few minutes
the machine i'll grepping on intel core i3 (i.e. dual-core), can't parallelize great extent. machine running ubuntu , i'd prefer via command line.
instead of running bog-standard grep each time, there way can either index or tag contents of text files improve searching?
have tried ag replacement grep? should in ubuntu repositories. had similar problem yours, , ag faster grep regex searches. there differences in syntax , features, matter if had special grep-specific needs.
Comments
Post a Comment