I need to find if there are some duplicate class in the a list of jar files. Here is what I did:
Go to the directory contains the jar files, can run this command:
find . -name “*.jar” -exec jar -tvf {} \; > list.out 2>&1
Then run:
cat list.out | grep Somepattern