Ultimate find…

You have got a directory and subdirectories full of jar/zip files and you would like to know which one contains the requested “Message” class … and avoid decompiling everything…

for i in `find . -name "*.jar"; find . -name "*.zip"`;
  do r=`jar -tvf $i | grep "Message"`;
    if [ "$r" != "" ]; then echo "Class found in $i";
    else echo "Not found in $i";

Thank you Gabriel…

2 thoughts on “Ultimate find…”

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.