Andrey Taranik
@pureclouds

А зачем разбивать на мегабайтные кусочки, если можно грепнуть по всему файлу? Да и вообще - сказали же, что там все есть, че проверять то :)

2024-01-10 17:05:47


@6363898259

It's a unix way. Радость через боль.

2024-01-10 17:06:28

Mechazilla
@denis_cy

https://man7.org/linux/man-pages/man1/grep.1.html

Known Bugs
Large repetition counts in the {n,m} construct may cause grep to
use lots of memory. In addition, certain other obscure regular
expressions require exponential time and space, and may cause
grep to run out of memory.

Back-references are very slow, and may require exponential time.

2024-01-10 17:08:36

Andrey Taranik
@pureclouds

А зачем regex’ы что бы найти себя? (по сути - просто кусок строки)

2024-01-10 17:12:13

Sergei A
@mainfme_w

Удачи 150гб файл грепать)

2024-01-10 17:53:07

Evgeny
@shpakerson

У меня получилось)

2024-01-10 17:56:44

Sergei A
@mainfme_w

Порезать на файлы и грепнуть папку в разы быстрее

2024-01-10 18:02:30

Evgeny
@shpakerson

У меня места нет столько на VM)

2024-01-10 18:03:26

Aleksei Udivankin
@udivankin

Rgrep меньше минуты ищет

2024-01-10 18:18:41

Sergei A
@mainfme_w

Ну мы про самый обычный греп щас Гнугреп)

2024-01-10 18:21:31

Evgeny
@shpakerson

Подожди: In addition, the variant programs egrep, fgrep and rgrep are the same as grep -E, grep -F, and grep -r, respectively. These variants are deprecated, but are provided for backward compatibility.

2024-01-10 18:21:54

Aleksei Udivankin
@udivankin