Re: case insensitive ls listing?
Quoting Kamaraju Kusumanchi <kk288@cornell.edu>:
> This is one of my long standing problems. Is there a way to make the
> listing of ls case insensitive?
>
> for example if in a directory, I do
>
> ls -someoption tem
>
> it should show all the files such as
>
> tem, Tem, tEm, TEm, TeM, TEM etc...
>
> I could not find such an option in the default ls. Is there any enhance
> ls package which does this? or can the default ls be manifested to do this?
>
> I can always do
>
> ls [tT][eE][mM]
>
> but that is too cumbersome to type and errorprone.
>
> Any ideas are welcome
> thanks
> raju
Set LANG in your environment to en_US (or any locale other than C that uses
dictionary sort and not ASCII sort).
-Roberto
--
Roberto C. Sanchez
http://familiasanchez.net/~sanchezr
Reply to: