This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: CONTINUING Elementary Problems with Find
- To: GBradfor at fhssmtp dot redstone dot army dot mil, ueda at prs dot cs dot fujitsu dot co dot jp
- Subject: Re: CONTINUING Elementary Problems with Find
- From: "Earnie Boyd" <earnie_boyd at hotmail dot com>
- Date: Thu, 23 Oct 1997 06:09:52 PDT
- Cc: gnu-win32 at cygnus dot com
>Date: Thu, 23 Oct 1997 09:58:16 +0900
>From: "=?iso-2022-jp?B?GyRCPmVFRCEhN3JHNxsoSg==?="
<ueda@prs.cs.fujitsu.co.jp>
>Reply-To: ueda@prs.cs.fujitsu.co.jp
>To: GBradfor <GBradfor@fhssmtp.redstone.army.mil>
>Cc: gnu-win32@cygnus.com
>Subject: Re: CONTINUING Elementary Problems with Find
>
>Hi,
>
>> Taking my initial command line:
>> find . -name *.c -print
>>
>> gives the following error:
>> find: Paths must precede expression
>> Usage: find [path...] [expression]
>
>The shell have expanded "*.c" into several filenames before execute
>find.
>May be, do you want to do as bellow?
>
> find . -print | grep '\.c'
>-
NO! To stop shell expansion use quoting:
find . -name '*.c' -print
or
find . -name "*.c" -print
- \\||//
---o0O0--Earnie--0O0o----
-earnie_boyd@hotmail.com-
------ooo0O--O0ooo-------
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".