The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 09-20-2005
Nicol Nicol is offline
Registered User
  
 

Join Date: Sep 2003
Location: Paris
Posts: 128
Sorting "ls" output on more than 1 column

I would sort the "ls" output : on the 1st column then on the nineth :

ls -al |sort -k1,1 -k9,9r

this doesn't work ?

Anybody have an idea ?

regards
Christian