delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/12/08/12:36:01

X-Spam-Check-By: sourceware.org
X-IronPort-AV: i="4.09,515,1157349600"; d="scan'208"; a="47890776:sNHT22869462"
MIME-Version: 1.0
Subject: RE: http://www.cygwin.com/ml/cygwin/2001-03/msg01023.html reply
Date: Fri, 8 Dec 2006 10:35:32 -0700
Message-ID: <25014BD780E09C4C9CAA23E7E47B317D067E1A@MAIL2.csw.l-3com.com>
In-Reply-To: <25014BD780E09C4C9CAA23E7E47B317D067E19@MAIL2.csw.l-3com.com>
From: "Voss, Douglas C @ CSW-SLC" <Douglas DOT C DOT Voss AT L-3Com DOT com>
To: <cygwin AT cygwin DOT com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
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
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id kB8Ha0Fd000984

I'm not sure how this works to put up a reply, but having the same problem, I found a solution not included in the followups:
 
Try it without the \ before the ;
 
c:\cygwin\bin\find.exe . -name "files to search pattern" -exec c:\cygwin\bin\grep.exe "search string" '{}' \; -print
/usr/bin/find: missing argument to `-exec'
 
c:\cygwin\bin\find.exe . -name "files to search pattern" -exec c:\cygwin\bin\grep.exe "search string" '{}' ; -print
<working search results>
 

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