[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: uniq --accumulate
From: |
Pádraig Brady |
Subject: |
Re: uniq --accumulate |
Date: |
Tue, 07 Feb 2012 16:00:39 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20110816 Thunderbird/6.0 |
On 02/07/2012 03:56 PM, Peng Yu wrote:
> Hi,
>
> Suppose that I have a table of the following, where the last column is
> a number. I'd like to accumulate the number of rows that are the same
> for all the remaining columns.
>
> A 1
> A 3
> X 2
> X 3
> Y 3
>
> The result will be the following. Although this is can be easily done
> by awk, etc, I'm wondering if it is worthwhile to add an additional
> option '--accumulate' to uniq. I'd recommend adding such an option if
> anybody in coreutils develop team also think this is useful.
>
> A 4
> X 5
> Y 3
>
Thanks for the suggestion,
but this is too specialized for coreutils I think.
cheers,
Pádraig.