Dan Jacobson wrote:
> $ dmesg|sort|uniq -D -c
> uniq: printing all duplicated lines and repeat counts is meaningless
> Try `uniq --help' for more information.
> 
> Meaningless for you, but just what I want:
> 
> $ dmesg|sort|uniq -D|uniq -c
>       5 EXT3-fs: mounted filesystem with ordered data mode.
>       2 PCI: Hardcoded IRQ 14 for device 0000:00:11.1
> 
> So better say
> uniq: please use uniq -D|uniq -c for now until we figure this one out

The restriction is valid.
You want `uniq -dc`

IMHO more restrictions should be added.

Adding -u to -d or -D just suppresses the last item of each group.
These options are meaningless anyway:
uniq -ud ≡ uniq's default mode of operation
uniq -uD ≡ cat

Pádraig.


_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to