Subject: [htdig] TR: [Cooker] SORT and locale
From: NEPOTE Charles (Neuilly Gestion) (firstname.lastname@example.org)
Date: Wed May 17 2000 - 09:00:46 PDT
A method up to date to sort...
It works. I tried it.
De : Pablo Saratxaga [mailto:email@example.com]
Envoyé : mercredi 17 mai 2000 17:36
À : firstname.lastname@example.org
Objet : Re: [Cooker] SORT and locale
On Wed, May 17, 2000 at 04:35:57PM +0200, NEPOTE Charles (Neuilly Gestion)
> Thanks for Pablo and DindinX's help [Mandrake].
> Thanks also for Gilles's help [htdig].
> when (under bash ; Linux Mandrake 7.0 ; LANG, LOCALE, etc. =fr) I :
> sort +0 -1 db.wordlist
> I now obtain :
> tue i:1
> tue i:2
> tué i:1
> tué i:2
> (is it OK and normal ?)
Yes. (but +/- is obsolete; you should use -k1,1 (the syntax of -k option
is a bit different, first it starts at number 1 instead of 0; then the
second field is included).
It seems that the (old) version of sort I have assumes -k1 is equal to -k1,1
while newer ones assume that -k1 means -k1,"last" (which after reading the
man page seems more logical).
So we both have answers to our questions :)
-- Ki ça vos våye bén, Pablo Saratxaga
http://www.ping.be/~pin19314/ PGP Key available, key ID: 0x8F0E4975
This archive was generated by hypermail 2b28 : Wed May 17 2000 - 06:52:29 PDT