This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: cygwin 2.22 find in NT 4.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@datatask.com.au
http://www.datatrain.net      Question = 0xFF;  // Optimised Hamlet


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]