/ Published in: Bash
URL: http://tdas.wordpress.com/2008/02/03/speed-up-grep/
First do:
localeThis will tell you your current 'locale' (which is likely UTF-8). Use the command below to change it to C. Searches are close to 50 times faster if you do this. See url for reference.
Expand |
Embed | Plain Text
export LC_ALL="C"
Comments
Subscribe to comments
You need to login to post a comment.

If all else fails get an SSD hard drive to crunch the data. It worked for me, grepping 2 million files was considerably faster.