LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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: 522

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
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,937

Rep: Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330
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: 522

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
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,937

Rep: Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330
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: 522

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: Fedora 64 bit RAID0 + LUKS, CentOS (server), Backtrack, Gentoo Hardened
Posts: 1,441

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 08:32 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration