Find a Class in a bunch of JAR Files
- Iterate over every jar in your folder.
- Output every JAR Name (to match found classes to JARs lateron)
- List Content of every JAR ( jar -tvf "$j" )
- Grep for that specific ClassName grep -Hsi ClassName
for j in *.jar; do echo $j:; jar -tvf "$j" | grep -Hsi ClassName; done
Written by Philipp Haußleiter
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Find
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#