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:

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

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -