[Top][All Lists]

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

Re: uniq: missing option -W / --check-fields=N

From: Pádraig Brady
Subject: Re: uniq: missing option -W / --check-fields=N
Date: Tue, 27 Jun 2006 14:18:20 +0100
User-agent: Mozilla Thunderbird 1.0.8 (X11/20060502)

Jim Meyering wrote:
> Pádraig Brady <address@hidden> wrote:
>>Jim Meyering wrote:
>>>  -g, --general-numeric-sort  compare according to general numerical value
>>>  -M, --month-sort            compare (unknown) < `JAN' < ... < `DEC'
>>>  -n, --numeric-sort          compare according to string numerical value
>>>  -r, --reverse               reverse the result of comparisons
>>These 4 deal with specific order which I don't think uniq should worry about?
> You're right about --reverse.  Thanks.
> However, the others change sort's idea of which values are equal,
> so they are relevant.  For -g, 0.0 == 0 == 00, etc.
> For -M, FEB == feb == Feb, etc.
> For -n, 00 == 0.
> The idea is to be able to use uniq with the same keyspec options
> as you used when sorting the data.
> That means the command-line options listed above as well as the
> key spec modifier options like b, d, g, M etc. used e.g., in -k 1b,1 -k 2n.

Right, thanks.

>>uniq can be efficient and assume LANG=C always as
>>it need only care if adjacent items match or not.
>>Assuming LANG=C may be an issue for --ignore-case though?
>>However I notice v5.2.1 at least only seems to handle ascii:
>>$ LANG=ga_IE.utf8 uniq -i < Pádraig
> Yes, that's still a problem.
> Would you like to work on it?

Hmm looks like that's done already?

$ cat Pádraig

$ ./i18n-uniq -i < Pádraig

reply via email to

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