Solved

Find command syntex

Posted on 2000-04-18
4
257 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
  • 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

786 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