--- Begin Message ---
Subject: |
grep: Fatal problem with (big) file |
Date: |
Mon, 11 Dec 2017 23:45:25 +0200 |
Hello!
$ awk '/Volvo/' Tieliikenne5.0.csv | wc -l
266175
$ grep Volvo Tieliikenne5.0.csv | wc -l
1638
$ echo $? (after "grep Volvo Tieliikenne5.0.csv" only too)
0
$ ack Volvo Tieliikenne5.0.csv | wc -l
266175
The file contain 5 milj. lines. It is the vehicle DB dump of Finland:
http://trafiopendata.97.fi/opendata/171009_Tieliikenne_5_0.zip
$ uname -a
Linux pg-desktop 4.10.0-40-generic #44~16.04.1-Ubuntu SMP Thu Nov 9
15:37:44 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Fatal error with ”small” file too:
$ awk '/Volvo/' Tieliikenne5.0.csv > volvot.csv
$ awk '/N3/' volvot.csv | wc -l
17822
$ grep N3 volvot.csv | wc -l
1701
$ wc -l volvot.csv
266175 volvot.csv
BR
pg
PS: Ubuntu webmaster - pls put error rep adr into your system and fwd
msg?
PPS: toimitus - Kyllä mää ennen olen osannut grepata;-)
PPPS: pointer error again? use perl or die!
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#33552: grep patches for "Binary file FOO matches" glitches |
Date: |
Mon, 21 Sep 2020 10:54:58 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
On 9/17/20 12:04 PM, Jim Meyering wrote:
please go ahead and push them.
As that's been done and the bug fixes are now installed, I'm closing both bug
reports.
--- End Message ---