bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: grep / zgrep issue


From: Paul Eggert
Subject: Re: grep / zgrep issue
Date: Tue, 20 May 2014 17:42:43 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

Cleber Baldan Jr wrote:
I wanted to have the count of occurences per file

I wouldn't consider this to be a bug, since zgrep is behaving just like grep: -l overrides -c, and if you use both options the -c is ignored. POSIX allows this behavior for 'grep'.

To get the behavior you want, try 'zgrep -E -i -c -H'. That worked for me (I'm using GNU grep).



reply via email to

[Prev in Thread] Current Thread [Next in Thread]