[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug#545740: grep -c without needing to then pipe sed '/:0$/d'
From: |
jidanni |
Subject: |
Bug#545740: grep -c without needing to then pipe sed '/:0$/d' |
Date: |
Wed, 09 Sep 2009 04:24:08 +0800 |
X-debbugs-cc: address@hidden
Package: grep
Version: 2.5.4-4
Severity: wishlist
Regarding
-c, --count print only a count of matching lines per FILE
$ echo zzz>ddd
Why can't there be a way to get rid of
$ grep -c zzz *|wc -l #these 30 extra lines:
31
$ grep -c zzz *|sed '/:0$/d' #<-- without having to resort to this
ddd:1
Wouldn't adding an optional way to specify "don't tell me about files
with no matches" be more in the grep spirit?
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Bug#545740: grep -c without needing to then pipe sed '/:0$/d',
jidanni <=