This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Searching for Zipped file contain a file
- From: "Justin (Home Office)" <macarthy at iol dot ie>
- To: cygwin <cygwin at cygwin dot com>
- Date: Fri, 24 May 2002 00:12:00 +0100
- Subject: Re: Searching for Zipped file contain a file
- References: <3CED76C1.7040306@iol.ie>
- Reply-to: macarthy at iol dot ie
Please CC to macarthy@iol.ie as Im on digest..
Thanks
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/