grepj searches for a class within jar files.
grepj <class-file-name> <file 1> ... <file n>
class-name is searched in the files provided. At least one file is required for a search.
The format of the class name is like foo.bar.Baz where foo.bar is the package name and Baz is the class name.
The files provided need to be valid jar, war, ear or zip files that can be read. Class files will be searched in nested locations as well. For example jar files in WEB-INF/lib of a war file will be searched. WEB-INF/classes will also be searched.
If the class file exists in the file provided, the file is output.
- 0 for class-file-name found in any of the files
- 1 for no match found
- 2 for any other errors