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

codeigniter - Fatal error: Call to undefined function lang() in CI Merchant using CardSave -

javascript - CasperJS/PhantomJS failing SSL handshakes on some sites even with --ssl-protocol=any -

python - Received unregistered task using Celery with Django -