delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/10/04/14:39:18

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Message-ID: <20021004183901.72574.qmail@web40501.mail.yahoo.com>
Date: Fri, 4 Oct 2002 11:39:01 -0700 (PDT)
From: Sheryl McKeown <iboulder AT yahoo DOT com>
Reply-To: smckeown AT mac DOT com
Subject: Problems with find -exec somecommand | tosomeother command
To: cygwin AT cygwin DOT com
MIME-Version: 1.0

Hello,

I'm attempting to find the number of lines in each
file of a source directory.

Using bash, I'm using the following command:

find . -name "*.frm" -exec cat -n {} | tail -n1 \;
but it returns the error 

cfind: missing argument to `-exec'
tail: ;: No such file or directory

I've tried various quoting schemes but I can't seem to
get it to work.

I am running XP Prof SP1.

Any help is appreciated.

-Sheryl

__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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