how to list file and sort by filename using ls
    Kevin D. Clark 
    kclark at mtghouse.com
       
    Mon Apr 24 16:20:01 EDT 2006
    
    
  
Zhao Peng writes:
> Using either "ls -ul" or "ls -cl"(which are supposed to sort by name
> according to manual, if I understood and used correctly), I just can't
> list files and sort them by filenames.
1:  can you show us the output of the following:
        echo $LANG
2:  Does this do what you want?:
        LANG=C ls -ul
I'll bet that the output of "ls" is sorted, but just not in the order
that you expected.
Regards,
--kevin
-- 
GnuPG ID: B280F24E                     And the madness of the crowd
alumni.unh.edu!kdc                     Is an epileptic fit
                                       -- Tom Waits
    
    
More information about the gnhlug-discuss
mailing list