Solved

Find command syntex

Posted on 2000-04-18
4
275 Views
Last Modified: 2006-11-17
The following works fine:
find /mnt/dos -name *termpaper*.doc

but only if termpaper is lower case.
How can I make this find command case insensitive?
0
Comment
Question by:davidpm
[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
4 Comments
 

Expert Comment

by:Vile
ID: 2729416
How about
find /mnt/dos -name *[tT][eE][rR][mM][pP][aA][pP][eE][rR]*.doc -print

I know its kludgy but it should work!

   :)
0
 
LVL 10

Accepted Solution

by:
rbr earned 20 total points
ID: 2729532
Much easier use

find /mnt/dos -iname *termpaper*.doc
0
 

Expert Comment

by:Vile
ID: 2729553
damn.. i knew there was a switch but wasnt on the nix box to run a man... :)
0
 

Author Comment

by:davidpm
ID: 2730759
Thanks that's it
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying 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

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

697 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