Searching for Zipped file contain a file

Justin (Home Office) macarthy@iol.ie
Fri May 24 02:56:00 GMT 2002


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/



More information about the Cygwin mailing list