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: "Larry Hall (RFK Partners, Inc)" <lhall at rfk dot com>
- To: macarthy at iol dot ie, cygwin at cygwin dot com
- Date: Thu, 23 May 2002 19:03:54 -0400
- Subject: Re: Searching for Zipped file contain a file
At 07:09 PM 5/23/2002, 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?
This is really off-topic for the Cygwin list. If anyone wants to follow-up,
please do it off-line.
Larry Hall lhall@rfk.com
RFK Partners, Inc. http://www.rfk.com
838 Washington Street (508) 893-9779 - RFK Office
Holliston, MA 01746 (508) 893-9889 - FAX
--
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/