IojanBlog
Everyday challenges, thoughts and recipes by an IT guy
Thursday, April 26, 2012
look for a class on a bunch of jars...
Challenge: how to find a class inside a lot of jars which are inside an unknown directory hierarchy.
Answer: bash scripting
find . -name "*.jar" -exec jar tvf '{}' \; -print | grep -e "<classname>.class" -e "\./"
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment