Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Delivered-To: mailing list cygwin@cygwin.com Message-Id: <5.1.0.14.2.20020523160512.023aa670@pop3.cris.com> X-Sender: rrschulz@pop3.cris.com Date: Thu, 23 May 2002 16:07:04 -0700 To: macarthy@iol.ie, cygwin@cygwin.com From: Randall R Schulz Subject: Re: Searching for Zipped file contain a file In-Reply-To: <3CED76C1.7040306@iol.ie> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Justin, [ This isn't Cygwin-specific. It's just a GNU grep question. ] % grep --help ... -H, --with-filename print the filename for each match ... Randall Schulz Mountain View, CA USA At 16:09 2002-05-23, Justin (Home Office) wrote: >Hi I'm looking for a quick bash script to get a list of all the *.jar >files that have the file SAXParser.class in them > >find /c -name '*.jar' -exec unzip -l '{}' \; | grep 'SAXParser.class' > >/c/results.txt > >This nearly does it, but I really want '{}' (ie the jar filename) Any bash >gurus have an idea? > > >Thanks, J -- 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/