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).