Solved

Unix FIND command.

Posted on 2000-04-08
3
236 Views
Last Modified: 2010-04-16
HI,
     Well I want to know how to make FIND command case-insensitive. Like if I say find /. - name experts. it should search for : experts, EXPERTS, Experts etc etc... Anybody knows how to do this?
0
Comment
Question by:kameshk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 2

Accepted Solution

by:
munsie earned 30 total points
ID: 2696394
find /. -iname experts

this will work with the GNU version of find (for linux).  I quickly tried this under Solaris and it did not work.

For platforms where it doesn't work, you'll have to download the GNU fileutils package and compile the find command.  Either install this as a replacement for the system find command or install into bin directory under your home dir, and make sure your home/bin dir is ahead of /bin and /usr/bin

dennis
0
 

Author Comment

by:kameshk
ID: 2696452
Well I have HP unix. And I am in professional enviornment. So guess patch working won't do for me. Thanx anyway.
0
 
LVL 2

Expert Comment

by:munsie
ID: 2696570
what does being in a professional environment have to do with it?  You still have a home directory that you can place an executable in, right?  from that, you just go and download the latest fileutils from the gnu website, configure, and compile...

now, if your trying to use this script in a production environment, you may need to have GNU find be approved for use.  But that wasn't indicated in the question above.

Another option is to go through HP and have them add the feature to their version of find.  Of the solutions, this is probally the least likely, or at the very least will cost you a lot of money.

and what are you refering to as patch working?  From what I see, the version of find installed on your machine doesn't do what you want it to, so if you want to get the task done, you need to get a version of find that works the way you want it to.  Since you're not the administrator, or if you are, you're not comfortable with replacing the system version of find with the GNU version, then why not compile the program and call it something else... maybe gnu-find?

if none of these are acceptable, then maybe you may need to reevaluate the script and maybe write it in another language like perl or C/C++.  Or at the very least, write a utility that does what you want find to do, but that seems awfully wasteful, since GNU find does it already today, and it's been tested more than any local program you'll end up writing.

good luck,
dennis
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Apps blocked by Java 9 103
Difference between List and Array in Python 5 140
object oriented design (python) and documentation tools 2 134
AvlTree-Node Data type 4 44
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question