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 _______________________________________________ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils