GNU bug report logs - #15770
zgrep -n does not work for n>9

Previous Next

Package: gzip;

Reported by: Horst Scheuermann <scheuerm <at> uni-trier.de>

Date: Thu, 31 Oct 2013 16:04: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: Horst Scheuermann <scheuerm <at> uni-trier.de>
To: 15770 <at> debbugs.gnu.org
Subject: bug#15770: zgrep -n does not work for n>9
Date: Thu, 31 Oct 2013 09:42:05 +0000
Hello,

zgrep --version
z$grep (gzip) 1.3.12
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software.  You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.

Written by Jean-loup Gailly.


This works:

zgrep -9 marclatz syslog-20131031.gz | wc -l
19

And this:

zgrep -C 10 marclatz syslog-20131031.gz | wc -l
21

This does not work:

zgrep -10 marclatz syslog-20131031.gz | wc -l
gzip: marclatz.gz: No such file or directory
2092205


But this works:

gunzip -c syslog-20131031.gz | grep -10 marclatz | wc -l
21

greetings




-- 
Horst Scheuermann

Zentrum für Informations-, Medien-
und Kommunikationstechnologie (ZIMK)
Universität Trier
54286 Trier
 
Tel.: +49 651 201/3436
Fax: +49 651 201/3921
E-Mail: Horst.Scheuermann <at> uni-trier.de






This bug report was last modified 11 years and 201 days ago.

Previous Next


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