Hi, I think I might have located a bug. I'm using Redhat 6.3. I'm try to get a listing of dot file sorted by date and all other files sorted by date. I'd like all the dot file to appears before all other files. Initially I was testing on 6.2 and noticed that the .(dot) files were not passed to sort. However this issue is fixed in 6.3. However it does not appear to be able to sort dot files. The filename is key 11 so I was expecting to see all the dot files group together Either at the start or end and to have these groups sorted chronographically. I've tried -k11 with and without d.
I've also tried to do a reverse sort but it did not seem to get the desired result. I'm not sure if I'm not using the options correctly Or whether it's a bug. If you need some additional data, just let me know. Thanks Terence uname -a Linux RHEL63TEMP3942 2.6.32-279.el6.x86_64 #1 SMP Wed Jun 13 18:24:36 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux [WFUser@RHEL63TEMP3942 tmp]$ [WFUser@RHEL63TEMP3942 tmp]$ ls -Asl /tmp |sort -k11 -k7M -k8n -k9,10 total 76 0 -rw-------. 1 root root 0 Nov 9 15:06 yum.log 4 -r--r--r--. 1 root root 11 Nov 9 17:37 .X0-lock 4 drwx------. 2 WFUser WFUser 4096 Nov 9 17:39 .esd-500 4 drwx------. 2 WFUser WFUser 4096 Nov 9 17:39 keyring-nQ6lMb 4 drwx------. 2 gdm gdm 4096 Nov 9 17:39 orbit-gdm 4 drwx------. 2 WFUser WFUser 4096 Nov 9 17:39 pulse-g9SlRO3UEqGg 4 drwx------. 2 WFUser WFUser 4096 Nov 9 17:39 virtual-WFUser.AVmQkN 4 drwx------. 2 gdm gdm 4096 Nov 9 17:40 pulse-Jkx9hhtHj4dy 4 drwx------. 2 WFUser WFUser 4096 Nov 9 18:20 orbit-WFUser 4 drwxrwxrwt. 2 root root 4096 Nov 9 18:35 .ICE-unix 4 drwx------. 2 root root 4096 Nov 9 18:35 keyring-kjLYun 4 drwx------. 2 root root 4096 Nov 9 18:35 orbit-root 4 drwx------. 2 root root 4096 Nov 9 18:35 pulse-TSaTZvcbd1kc 4 drwx------. 2 root root 4096 Nov 9 18:35 ssh-BRSEI10523 4 drwxrwxrwt. 2 root root 4096 Nov 9 18:35 .X11-unix 4 -r--r--r--. 1 root root 11 Nov 9 18:35 .X2-lock 4 -rw-rw-r--. 1 WFUser WFUser 5 Nov 16 18:14 .tc 4 -rw-rw-r--. 1 WFUser WFUser 5 Nov 16 18:14 .tc2 4 -rw-rw-r--. 1 WFUser WFUser 5 Nov 16 18:15 .tc4 4 -rw-rw-r--. 1 WFUser WFUser 5 Nov 16 18:18 .tc3 [WFUser@RHEL63TEMP3942 tmp]$ ls -Asl /tmp |sort -k11d -k7M -k8n -k9,10 total 76 0 -rw-------. 1 root root 0 Nov 9 15:06 yum.log 4 -r--r--r--. 1 root root 11 Nov 9 17:37 .X0-lock 4 drwx------. 2 WFUser WFUser 4096 Nov 9 17:39 .esd-500 4 drwx------. 2 WFUser WFUser 4096 Nov 9 17:39 keyring-nQ6lMb 4 drwx------. 2 gdm gdm 4096 Nov 9 17:39 orbit-gdm 4 drwx------. 2 WFUser WFUser 4096 Nov 9 17:39 pulse-g9SlRO3UEqGg 4 drwx------. 2 WFUser WFUser 4096 Nov 9 17:39 virtual-WFUser.AVmQkN 4 drwx------. 2 gdm gdm 4096 Nov 9 17:40 pulse-Jkx9hhtHj4dy 4 drwx------. 2 WFUser WFUser 4096 Nov 9 18:20 orbit-WFUser 4 drwxrwxrwt. 2 root root 4096 Nov 9 18:35 .ICE-unix 4 drwx------. 2 root root 4096 Nov 9 18:35 keyring-kjLYun 4 drwx------. 2 root root 4096 Nov 9 18:35 orbit-root 4 drwx------. 2 root root 4096 Nov 9 18:35 pulse-TSaTZvcbd1kc 4 drwx------. 2 root root 4096 Nov 9 18:35 ssh-BRSEI10523 4 drwxrwxrwt. 2 root root 4096 Nov 9 18:35 .X11-unix 4 -r--r--r--. 1 root root 11 Nov 9 18:35 .X2-lock 4 -rw-rw-r--. 1 WFUser WFUser 5 Nov 16 18:14 .tc 4 -rw-rw-r--. 1 WFUser WFUser 5 Nov 16 18:14 .tc2 4 -rw-rw-r--. 1 WFUser WFUser 5 Nov 16 18:15 .tc4 4 -rw-rw-r--. 1 WFUser WFUser 5 Nov 16 18:18 .tc3 [WFUser@RHEL63TEMP3942 tmp]$ [WFUser@RHEL63TEMP3942 tmp]$ ls -Asl /tmp |sort -r -k11d -k7M -k8n -k9,10 total 76 4 -r--r--r--. 1 root root 11 Nov 9 18:35 .X2-lock 4 drwxrwxrwt. 2 root root 4096 Nov 9 18:35 .X11-unix 4 drwx------. 2 root root 4096 Nov 9 18:35 ssh-BRSEI10523 4 drwx------. 2 root root 4096 Nov 9 18:35 pulse-TSaTZvcbd1kc 4 drwx------. 2 root root 4096 Nov 9 18:35 orbit-root 4 drwx------. 2 root root 4096 Nov 9 18:35 keyring-kjLYun 4 drwxrwxrwt. 2 root root 4096 Nov 9 18:35 .ICE-unix 4 drwx------. 2 WFUser WFUser 4096 Nov 9 18:20 orbit-WFUser 4 drwx------. 2 gdm gdm 4096 Nov 9 17:40 pulse-Jkx9hhtHj4dy 4 drwx------. 2 WFUser WFUser 4096 Nov 9 17:39 virtual-WFUser.AVmQkN 4 drwx------. 2 WFUser WFUser 4096 Nov 9 17:39 pulse-g9SlRO3UEqGg 4 drwx------. 2 gdm gdm 4096 Nov 9 17:39 orbit-gdm 4 drwx------. 2 WFUser WFUser 4096 Nov 9 17:39 keyring-nQ6lMb 4 drwx------. 2 WFUser WFUser 4096 Nov 9 17:39 .esd-500 4 -r--r--r--. 1 root root 11 Nov 9 17:37 .X0-lock 0 -rw-------. 1 root root 0 Nov 9 15:06 yum.log 4 -rw-rw-r--. 1 WFUser WFUser 5 Nov 16 18:18 .tc3 4 -rw-rw-r--. 1 WFUser WFUser 5 Nov 16 18:15 .tc4 4 -rw-rw-r--. 1 WFUser WFUser 5 Nov 16 18:14 .tc2 4 -rw-rw-r--. 1 WFUser WFUser 5 Nov 16 18:14 .tc [WFUser@RHEL63TEMP3942 tmp]$