ls command sort options - SOLVED
Brad De Vries
devriesbj
Mon May 17 11:37:38 PDT 2004
Keith, Bill; you guys were both right on the money.
The LANG and LC_COLLATE environment variables can
change the way things are sorted. Changing either one
to "C" fixed the problem.
Thanks again to you and everyone who provided
suggestions/help.
Brad.
--- Keith Morse <kgmorse at mpcu.com> wrote:
> On Wed, 11 Sep 2002, Brad De Vries wrote:
>
> > Does anyone know of a way to sort the files in the
> a
> > directory the way 'ls' used to sort them?
>
> Wow, this spawned quite a thread, eh? This very
> thing is/has been
> discussed at length on the Red Hat lists (redhat,
> valhalla, enigma).
>
> IN /etc/sysconfig/i18n you can set the variable
> "LC_COLLATE=C", which
> will change the behaviour system wide. Otherwise
> you could set this for
> each individual user in /home/$USER/.i18n .
>
> I haven't changed mine, opting to go along with the
> "standard".
>
>
> [kgmorse at lynx kgmorse]$ cat /etc/sysconfig/i18n
> LANG="en_US"
> SUPPORTED="en_US:en"
> SYSFONT="lat0-sun16"
> SYSFONTACM="iso01"
>
>
> See "man bash" for more gory details
__________________________________________________
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com
More information about the Linux-users
mailing list