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

java - HTTP Status 500 - An exception occurred processing JSP page /second.jsp at line 15 -

SQL Server - MyCTE query based on 24 hour period (next day) -

php - Using str_replace to translate a MySQL Table in html -