Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: ray carter Newsgroups: comp.os.linux.misc Subject: Re: Case insensitive bash search? Date: 25 Jan 2013 20:45:52 GMT Lines: 19 Message-ID: References: <1KzMs.131493$2v.110871@newsfe05.iad> <87r4l982oa.fsf@araminta.anjou.terraraq.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net 7Tg73uiywDrzgU9OMZSLqAHTfT42uKzV0O/72QM3Zpy3VL75qyqnOjL3D2vanKn3EV Cancel-Lock: sha1:wA16F8UwnDRk9qwfHNQwtlD3OSM= User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) Xref: csiph.com comp.os.linux.misc:7098 On Fri, 25 Jan 2013 19:48:05 +0000, Richard Kettlewell wrote: > unruh writes: >> On 2013-01-25, Jon Danniken wrote: >>> Hello, >>> >>> Is it possible to have the search of a folder with "ll" return all >>> case-insensitive results? >>> >>> As an example, if I search for "*Foo*", I will only get files that >>> have the capital "F", but not "foo". >> >> I do not think ls has such an option. But you could do ls |grep -i >> '*foo*' >> which would return the case insensitive result. > > That won’t work. grep doesn’t use glob syntax. Simply use 'ls | grep -i foo'.