2
votes
3answers
129 views

grep on a Java Method

Lets say I have a java class called DirectAction some of the methods in the class have the word "action" or "Action" What is the grep command to get the names of all the methods who have "Action" or ...
2
votes
1answer
1k views

Search for a String inside all files inside a war

Where I work someone had Java project and used Eclipse to export that project into a .war package. Now I need to search for a string inside all the files that make that .war package. I know that a ...
2
votes
2answers
376 views

Search class names in jars

I'm using this command to search *.jar files for java classes, and I only get the name of the jars that contain those classes: grep -ral --include=*.jar SignonEJB . How can I also get the class ...
4
votes
3answers
921 views

Uniquely identifying java processes with same name

I have two java processes which run using the same file name, MyApp.jar (for example). /usr/java/latest/bin/java -jar MyApp.jar These jars exist in different places and use different ...
5
votes
2answers
5k views

Looking for a Java class in a set of JARs with find, unzip, grep

I was trying to find the JAR containing a Java Class. JARs are in zip format. My first attempt was: $ find -name "*3.0.6.RELEASE.jar" | xargs -l1 unzip -l \ | grep stereotype.Controller ...