Linux cmd to search for a class file among jars irrespective of jar path
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 this command: grep Hello.class *.jar Which did not return a list of jars containing the class. Then I ran the command: grep Hello.class /full/path/of/jar/file/*.jar Which did return the relevant jar file. Is there a better way? Where are you jar files? Is there a pattern to find where they are? 1. Are they all in one directory? For example, foo/a/a.jar and foo/b/b.jar are all under the folder foo/ , in this case, you could use find with