• XSS.stack #1 – первый литературный журнал от юзеров форума

Using zgrep

r3aperz

floppy-диск
Пользователь
Регистрация
22.02.2021
Сообщения
1
Реакции
0
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!
 


Напишите ответ...
  • Вставить:
Прикрепить файлы
Верх