delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/10/23/20:53:32

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-Id: <5.0.0.25.0.20001024114959.009dbcc0@bastion.internal.datatask.com.au>
X-Sender: emclean AT bastion DOT internal DOT datatask DOT com DOT au
X-Mailer: QUALCOMM Windows Eudora Version 5.0
Date: Tue, 24 Oct 2000 11:53:22 +1100
To: cygwin <cygwin AT sources DOT redhat DOT com>
From: Evan McLean <emclean AT datatask DOT com DOT au>
Subject: RE: cygwin 2.22 find in NT 4.0
Mime-Version: 1.0

>I myself discovered that cygwin's find is case hypersensitive. Despite the 
>case insensitive nature of the Windows filesystems, apparently find gets 
>the name of the file and compares against that, so that it only matches if 
>your pattern is the exact (case matched) string that the FS is returning. 
>However, your examples imply that you have handled this already. Try:
>
>$ find . -name [Pp][oO][Rr][Tt]\.[Ii][Nn][Ii]
>
>I just tested this (with win.ini) and it works nicely. I haven't written 
>the awk script to convert all alphas to 2 character classes yet, but I'd 
>be happy to post it once it's ready...

You'll probably find that

$find . -iname port.ini

Works equally well.

See "man find" regarding details of iname option (plus lots of others!).

E.

--
Evan McLean                Did you know that beating your head against
Datatask Pty. Ltd.         a brick wall burns 150 calories an hour?
emclean AT datatask DOT com DOT au
http://www.datatrain.net      Question = 0xFF;  // Optimised Hamlet


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019