LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   find without caring for cap or small letters (https://www.linuxquestions.org/questions/linux-newbie-8/find-without-caring-for-cap-or-small-letters-487328/)

xpucto 09-27-2006 04:31 AM

find without caring for cap or small letters
 
Hi!

is there an option or a way to use the command find so that it looks for files no matter if it's written in captal letters or not.
so far I've been used this:
Quote:

find /home -name myfile.txt
but what if I also want to look for mYfile.txt and MyFile.txt.....?

I've looked in the manpages but couldn't find something.
thanks.

bathory 09-27-2006 04:42 AM

Code:

find /home -iname myfile.txt
It's in the man page of find

xpucto 09-27-2006 06:10 AM

thanks.
I searched in the manpage with keywords such as "capital".

but iname doesn't work under solaris 10 though.

bathory 09-27-2006 06:40 AM

You can either install the GNU find from sunfreeware, or use something like:
Code:

ls -lR /home|grep -i myfile.txt

xpucto 09-27-2006 07:25 AM

Thanks a lot!

fakie_flip 03-04-2007 03:20 PM

there are also the updatedb and locate commands, but i dont know if solaris has them


All times are GMT -5. The time now is 09:24 PM.