I want to search for a particular class file among many jar files without giving the location of each jar file.
Is this possible with a simple command?
I tried t
I have used this small snippet. Might be slower but works every time.
for i in 'find . -type f -name "*.jar"'; do jar tvf $i | grep "com.foo.bar.MyClass.clss"; if [ $? -eq 0 ]; then echo $i; fi; done