[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
>>Pádraig
>>PÁdraig
>
>
> Yes, that's still a problem.
> Would you like to work on it?
Hmm looks like that's done already?
http://www.openi18n.org/subgroups/utildev/dli18npatch2.html
$ cat Pádraig
Pádraig
PÁdraig
$ ./i18n-uniq -i < Pádraig
Pádraig
- Re: uniq: missing option -W / --check-fields=N, (continued)
- Re: uniq: missing option -W / --check-fields=N, Matt Keenan, 2006/06/22
- Re: uniq: missing option -W / --check-fields=N, Paul Eggert, 2006/06/22
- Re: uniq: missing option -W / --check-fields=N, Matt Keenan, 2006/06/23
- Re: uniq: missing option -W / --check-fields=N, Pádraig Brady, 2006/06/26
- Re: uniq: missing option -W / --check-fields=N, Paul Eggert, 2006/06/26
- Re: uniq: missing option -W / --check-fields=N, Jim Meyering, 2006/06/26
- Re: uniq: missing option -W / --check-fields=N, Matt Keenan, 2006/06/26
- Re: uniq: missing option -W / --check-fields=N, Jim Meyering, 2006/06/27
- Re: uniq: missing option -W / --check-fields=N, Pádraig Brady, 2006/06/27
- Re: uniq: missing option -W / --check-fields=N, Jim Meyering, 2006/06/27
- Re: uniq: missing option -W / --check-fields=N,
Pádraig Brady <=
- Re: uniq: missing option -W / --check-fields=N, Jim Meyering, 2006/06/27
- Re: uniq: missing option -W / --check-fields=N, Paul Eggert, 2006/06/27