delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/10/12/12:20:42

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
To: cygwin AT cygwin DOT com
From: Daniel Miller <dan AT imi-test DOT com>
Subject: problem with find/grep
Date: Tue, 12 Oct 2004 16:20:24 +0000 (UTC)
Organization: Cathartes Aura
Lines: 9
Message-ID: <Xns95805F03FD0C4dancarddupercom@80.91.229.5>
X-Complaints-To: usenet AT sea DOT gmane DOT org
X-Gmane-NNTP-Posting-Host: adsl-68-123-127-203.dsl.snfc21.pacbell.net
User-Agent: Xnews/06.08.25
X-IsSubscribed: yes

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



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