Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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: <3CED7740.4090901@iol.ie> Date: Fri, 24 May 2002 00:12:00 +0100 From: "Justin (Home Office)" Reply-To: macarthy AT iol DOT ie User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0rc2) Gecko/20020510 X-Accept-Language: en-us, en MIME-Version: 1.0 To: cygwin Subject: Re: Searching for Zipped file contain a file References: <3CED76C1 DOT 7040306 AT iol DOT ie> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Please CC to macarthy AT iol DOT 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/