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:
>>    http://lists.gnu.org/archive/html/bug-coreutils/2006-06/msg00211.html
>> 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.

-gordon


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

Reply via email to