LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-27-2006, 04:31 AM   #1
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 524

Rep: Reputation: 31
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.
 
Old 09-27-2006, 04:42 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Code:
find /home -iname myfile.txt
It's in the man page of find
 
Old 09-27-2006, 06:10 AM   #3
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 524

Original Poster
Rep: Reputation: 31
thanks.
I searched in the manpage with keywords such as "capital".

but iname doesn't work under solaris 10 though.

Last edited by xpucto; 09-27-2006 at 06:23 AM.
 
Old 09-27-2006, 06:40 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
You can either install the GNU find from sunfreeware, or use something like:
Code:
ls -lR /home|grep -i myfile.txt
 
Old 09-27-2006, 07:25 AM   #5
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 524

Original Poster
Rep: Reputation: 31
Thanks a lot!
 
Old 03-04-2007, 03:20 PM   #6
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495

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


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Altiris Recognized as a Red Herring Small Cap 100 LXer Syndicated Linux News 0 12-14-2005 03:46 AM
Sharing is caring KezzerDrix Linux - Newbie 4 03-15-2005 09:33 AM
mozilla on xfce4 font letters too small hq4ever Linux - General 1 02-06-2005 12:28 PM
sed or awk question - replace caps with small letters computera Linux - General 1 12-30-2003 04:39 AM
Out Of Memory - A caring malloc? cyent Programming 3 09-18-2002 09:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration