Re: grep / zgrep issue

Paul Eggert <[email protected]>
Newsgroups gmane.comp.gnu.utils.bugs
Organization UCLA Computer Science Department
Message-ID <[email protected]>
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).
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.