Wednesday, August 10, 2011
Linux command to search a file from jar
Below is an easy way to find any file from list of all the jar files from a particular folder.
Go to the jar libraries folder which contain the jar files and type below command:
grep YourClassFile YourJar
The above command will display YourJar file if the class YourClassFile is available in the jar.
You can also use below command which will search the class file from all the jar in the current folder and sub folders.
grep -r YourClassFile *