[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: don't say uniq -D -c is meaningless
From: |
Pádraig Brady |
Subject: |
Re: don't say uniq -D -c is meaningless |
Date: |
Mon, 26 Jun 2006 10:29:44 +0100 |
User-agent: |
Mozilla Thunderbird 1.0.8 (X11/20060502) |
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.