delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/10/23/06:46:58

From: earnie_boyd AT hotmail DOT com (Earnie Boyd)
Subject: Re: CONTINUING Elementary Problems with Find
23 Oct 1997 06:46:58 -0700 :
Message-ID: <19971023130952.25947.qmail.cygnus.gnu-win32@hotmail.com>
To: GBradfor AT fhssmtp DOT redstone DOT army DOT mil, ueda AT prs DOT cs DOT fujitsu DOT co DOT jp
Cc: gnu-win32 AT cygnus DOT com


>Date: Thu, 23 Oct 1997 09:58:16 +0900
>From: "=?iso-2022-jp?B?GyRCPmVFRCEhN3JHNxsoSg==?=" 
<ueda AT prs DOT cs DOT fujitsu DOT co DOT jp>
>Reply-To: ueda AT prs DOT cs DOT fujitsu DOT co DOT jp
>To: GBradfor <GBradfor AT fhssmtp DOT redstone DOT army DOT mil>
>Cc: gnu-win32 AT cygnus DOT 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 AT hotmail DOT 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 AT cygnus DOT com" with one line of text: "help".

- Raw text -


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