bug-coreutils
[Top][All Lists]
Advanced

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

Re: sort and LC_COLLATE: suggestions for improvement (with patch)


From: Philip Rowlands
Subject: Re: sort and LC_COLLATE: suggestions for improvement (with patch)
Date: Fri, 18 May 2007 20:16:56 +0100 (BST)

On Fri, 18 May 2007, Jean-Pierre Vial wrote:

When one wants to sort a file in which letters are just codes, not meaningfull words, the sort order obtained through LC_COLLATE is very often inadequate. The help suggest to set LC_ALL="C", but this is often inadequate as well in complcated shell scripts.

Inadequate in what sense? The script could be phrased something like this:

LC_COLLATE=C sort -k2,2 ...

which avoids having to set then reset any LC_ environment variables.


Cheers,
Phil




reply via email to

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