[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

ls: sorting directories before files

i can influence sorting with LC_COLLATE, but i have not found an
answer to this: how can i make /bin/ls sort directories before
files? there seems to be no such option in ls, and writing
a function to pipe it through sort opens all kinds of worms,
including screwing up dircolors.

any tips appreciated!

Please do not CC me when replying to lists; I read them!
 .''`.     martin f. krafft <madduck@debian.org>
: :'  :    proud Debian developer, admin, and user
`. `'`
  `-  Debian - when you have better things to do than fixing a system
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!

Attachment: signature.asc
Description: Digital signature

Reply to: