Title: TR: [Cooker] SORT and locale

A method up to date to sort...
It works. I tried it.


-----Message d'origine-----
De : Pablo Saratxaga [mailto:[EMAIL PROTECTED]]
Envoy� : mercredi 17 mai 2000 17:36
� : [EMAIL PROTECTED]
Objet : Re: [Cooker] SORT and locale


Kaixo!

On Wed, May 17, 2000 at 04:35:57PM +0200, NEPOTE Charles (Neuilly Gestion) wrote:
>
> 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

Reply via email to