cygwin 2.22 find in NT 4.0

Evan McLean emclean@datatask.com.au
Mon Oct 23 17:52:00 GMT 2000


>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



More information about the Cygwin mailing list