Subject: grep: Fatal problem with (big) file

From: pg <[email-masked]>
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!