Helloo, does anyone know how to speed up zgrep without buying a faster HDD?
I have a bunch of databases in .tar.gz to save space and the zgrep command I use is:
LC_ALL=C zgrep -i -a "string" *.gz > output.txt
This uses around 20% of my HDD and reads at around 50mb/s, with normal grep although it doesnt work on .tar.gz it still reads but at around 90mb/s and 100% HDD usage, does anyone know a way to make zgrep search faster?
Currently have ~100GB compressed .tar.gz and it takes me 40 mins to search.
Many thanks in advance!
I have a bunch of databases in .tar.gz to save space and the zgrep command I use is:
LC_ALL=C zgrep -i -a "string" *.gz > output.txt
This uses around 20% of my HDD and reads at around 50mb/s, with normal grep although it doesnt work on .tar.gz it still reads but at around 90mb/s and 100% HDD usage, does anyone know a way to make zgrep search faster?
Currently have ~100GB compressed .tar.gz and it takes me 40 mins to search.
Many thanks in advance!