Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Suppose I have file ./My_Lasker_Games.pdf but all I know about the name is the it contains 'Lasker'. Then ls *lasker* won't do any good, because ls has no option for case sensibility. The outcome is that I'm forced to use find.
Wouldn't it be nice that ls had an option --ignore-case? Thanks for reading.
Thanks. Anyways, I do not understand people who say ls has a great many options. To the degree that the cdrecord manual says:
BUGS:
Cdrecord has even more options than ls.
[END QUOTE]
ls has no more than 50 options, whereas the options in cdrecord are counted by the hundreds. And a lot linux programs have a much larger quantity of options than ls.
By the way, the idea for an "ignore case" option in ls really doesn't seem very applicable to the way it functions. All ls really does is print out any files or directory contents that match the list you feed it. If you look at the options it does have, they're mostly there to control the formatting of the output (including what not to print). The input for ls is already effectively controlled by shell globbing, as already posted.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.