find <dirs> -name '*.jar' -exec jar tvf {} \; > outputfile
THis will produce a list of all files in the jar files outputted to outputfile.
This script below will print out the filename of each jar, and each associated file within.
list=$(find /apps/bea -print | grep .jar)
for el in $list; do
printf "Searching in %s\n" "$el";
case $el in
jar -tf $el | grep com.bea.console.utils.ConsoleRequestListener
;;
esac
done
No comments:
Post a Comment