[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: uniq with sort-like "--key" support

From: Assaf Gordon
Subject: Re: uniq with sort-like "--key" support
Date: Tue, 12 Feb 2013 13:27:48 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.4) Gecko/20120510 Icedove/10.0.4

Pádraig Brady wrote, On 02/11/2013 08:50 PM:
> On 02/12/2013 01:31 AM, Assaf Gordon wrote:
>> I'd like to offer a proof-of-concept patch for adding sort-like "--key" 
>> support for the 'uniq' program, as discussed here:
>> and in several other threads.
> I'm not going to look at it this week, but thank you!
> Consolidating the field processing in a central place
> is really good, and it can then be enhanced in future
> to support multibyte chars etc.

I'll continue in the meantime - the attached version passes all tests, and 
includes many new ones.
also supports "--field-separator=SEP" (like sort), multiple keys,
and tested unique by month/fast-numeric/general-numeric/case-insensitive.


Attachment: uniq_keys1.patch.xz
Description: application/xz

reply via email to

[Prev in Thread] Current Thread [Next in Thread]