[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
sort case intermixed but leading dot not
From: |
gregory mott |
Subject: |
sort case intermixed but leading dot not |
Date: |
12 Jun 2003 11:40:34 +0100 |
On Thu, 2003-06-12 at 10:26, David T-G wrote:
> ...gregory mott said...
> % On Thu, 2003-06-12 at 02:30, David T-G wrote:
> % > ...gregory mott said...
> % > % since you also mention locale i will also mention that i do have a
> % > % personal locale i made just for the purpose of sorting things the way i
> % > % want. my locale sorts case intermixed. i was floored that sorting case
> % > % intermixed just wasn't available until i cooked up a locale for myself,
> % >
> % > What, en_US doesn't work for you? That's what put me *on* this list :-)
> %
> % uh, it's been awhile since i went thru that exercise but iirc when
> % trying the various available locales i was able to get either both case
> % and leading dot files intermixed or neither. what i want is case
> % intermixed but leading dot not.
>
> So you want
>
> .foo
> .Zip
> bar
> GOO
> junk
>
> for your output? Yes, I believe that en_US does that for you. I don't
> use it, so I don't know much about it; I'm just glad I was able to find
> how to put things back to "normal" :-)
uh, well, not here (redhat 9+up2date)
(glibc-common-2.3.2-27.9, coreutils-4.5.3-19):
$ LC_COLLATE=en_US ls -la
total 1706
drwx------ 60 g admin 4096 Jun 12 11:13 .
d--x--x--x 5 root 223 1024 Jun 8 12:18 ..
drwx------ 2 g 223 1024 Aug 18 2002 .AbiSuite
-rw-rw-r-- 1 g 223 0 Apr 30 2002 .addressbook
-rw------- 1 g 223 2285 Apr 30 2002 .addressbook.lu
-rw-r--r-- 1 g 223 29 Dec 11 19:37 .aspell.english.prepl
-rw-r--r-- 1 g 223 26 Dec 11 19:37 .aspell.english.pws
-rw------- 1 g 223 0 Jun 3 04:47 .autorun.lck
-rw------- 1 g admin 85225 Jun 12 08:03 .bash_history
-rw-r--r-- 1 g admin 124 Nov 29 2001 .bashrc
drwx------ 2 g 223 1024 Jun 11 17:40 .camel_certs
-rw-r--r-- 1 g 223 1277 Jan 15 09:36 candcreatemapgrn.gif
-rw-r--r-- 1 g 223 240 Sep 16 2002 .chromium
-rw-r--r-- 1 g 223 3800 Sep 16 2002 .chromium-score
-rw-r--r-- 1 g 223 0 Oct 5 2002 .civclientrc
-rw------- 1 g admin 0 Feb 13 2002 .cvspass
lrwxrwxrwx 1 g admin 22 Sep 18 2002 .DCOPserver_ruby ->
/g/.DCOPserver_ruby_:0
-rw-r--r-- 1 g g 51 Jun 12 08:09 .DCOPserver_ruby__0
lrwxrwxrwx 1 g g 22 Jun 12 08:09 .DCOPserver_ruby_:0 ->
/g/.DCOPserver_ruby__0
drwx------ 3 g 223 1024 Jun 12 08:09 Desktop
drwxr-xr-x 5 g admin 1024 Mar 5 2002 .dia
-rw-r--r-- 1 root 223 58183 Sep 18 2002 dum
drwx------ 4 g 223 1024 Dec 15 08:42 .ee
-rw-r--r-- 1 g admin 820 Nov 29 2001 .emacs
..etc etc..