This is the mail archive of the cygwin@sourceware.cygnus.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: 'find' case insensitive filenames


Hello,

Gnu find includes the predicate option -iname, which stands for case
Invariant name match and does exactly what you want.

Your example would be notated as:

	find . -iname fobar


Randy Schulz
Teknowledge Corp.
Palo Alto, CA USA


At 19:49 -0700 6/3/99, Yu-Jui Lee wrote:
>Hi,
>
>This may be a stray topic. But in a Win32 environment, the convention with
>file names is case insensitive. While the 'find' command in cygwin b20.1 is
>case sensitive. For example, if I want to find a case-insensitive "foo.bar",
>I need to type "find . -name "[Ff][Oo][Oo][Bb][Aa][Rr]". Is there a
>convenient way to do this?
>
>Thanks!
>
>Yu-Jui Lee
>
>Trinity Communications Inc.
>Taipei Taiwan.
>
>
>--
>Want to unsubscribe from this list?
>Send a message to cygwin-unsubscribe@sourceware.cygnus.com


--
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]