delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/10/12/13:08:48

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Tue, 12 Oct 2004 11:00:35 -0600
From: Mark Paulus <mark DOT paulus AT mci DOT com>
Subject: Re: problem with find/grep
In-reply-to: <Pine.GSO.4.61.0410121222100.24643@slinky.cs.nyu.edu>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Message-id: <0I5H00EZWDWZK8@pmismtp01.mcilink.com>
MIME-version: 1.0
Priority: Normal
X-IsSubscribed: yes

Another issue I've run into with find, but typically when I pipe
it to xargs is that directories/files with spaces in the names cause
all kind of disruption.

On Tue, 12 Oct 2004 12:25:15 -0400 (EDT), Igor Pechtchanski wrote:

>On Tue, 12 Oct 2004, Daniel Miller wrote:

>> On linux systems, I typically to global searches with a command such as:
>>
>>     	find . -name "*.[ch]*" -exec grep -H -n stuff {} \;
>>
>> and this works nicely.  However, when I try the same command under Cygwin
>> (from a 4NT prompt, not Bash), I get "find: missing argument to '-exec' ".
>> I tried a variety of modifications to the command but nothing makes this
>> work.  What am I missing??

>I'd bet it's the fact that 4NT uses different quoting mechanisms than
>bash.  Try quoting the semicolon as ";" instead of \;.  You may also need
>to quote the braces.  CGF uses 4NT, AFAIK, so he could probably provide
>better hints.  I won't ask the implied "Why not use bash?" question...
>	Igor
>-- 
>				http://cs.nyu.edu/~pechtcha/
>      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
>ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
>     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
>    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

>"Happiness lies in being privileged to work hard for long hours in doing
>whatever you think is worth doing."  -- Dr. Jubal Harshaw

>--
>Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>Problem reports:       http://cygwin.com/problems.html
>Documentation:         http://cygwin.com/docs.html
>FAQ:                   http://cygwin.com/faq/





--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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