case insensitive unix ls command -


i trying find way have results of ls command printed in case insensitive manner.

currently ls command results in:

apple boy chart dock apples boys charts docks 

what want this:

apple apples boy boys chart charts dock docks 

is possible?

ls (at least if you're using gnu coreutils version; ls --version check that) sorts file names according current locale.

the set of available locales varies system system (locale -a list), on system this:

lc_collate=en_us.utf8 ls 

sorts names a , a before b , b -- though might not exactly in order you're looking for.

this works when ls lists files in multiple columns, that's difficult sort -f.

(i have $lc_collate set c locale-sensitive sorting done in ascii order.)


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -