GNU bug report logs - #29668
grep: Fatal problem with (big) file

Previous Next

Package: grep;

Reported by: pg <pasi.vitsa <at> yahoo.com>

Date: Mon, 11 Dec 2017 22:03:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Norihiro Tanaka <noritnk <at> kcn.ne.jp>
To: pg <pasi.vitsa <at> yahoo.com>
Cc: 29668 <at> debbugs.gnu.org, toimitus <at> masinistit.com, webmaster <at> ubuntu.com
Subject: bug#29668: grep: Fatal problem with (big) file
Date: Tue, 12 Dec 2017 08:36:36 +0900
On Mon, 11 Dec 2017 23:45:25 +0200
pg <pasi.vitsa <at> yahoo.com> wrote:

> $ awk '/Volvo/' Tieliikenne5.0.csv | wc -l
> 266175
> $ grep Volvo Tieliikenne5.0.csv | wc -l
> 1638

> $ awk '/N3/' volvot.csv | wc -l
> 17822
> $ grep N3 volvot.csv | wc -l
> 1701

Perhaps, characters not to be able to recognize in your locale included
in Tieliikenne 5.0.csv and volvot.csv are included.  Try below.

--
$ env LC_ALL=C grep 'Volvo' Tieliikenne\ 5.0.csv | wc -l
266175

or

$ grep -a 'Volvo' Tieliikenne\ 5.0.csv | wc -l
266175

--
$ env LC_ALL=C grep N3 volvot.csv | wc -l
17822

or

$ grep -a N3 volvot.csv | wc -l
17822





This bug report was last modified 4 years and 239 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.