ManishKG@Sun

My Work At Sun
Tuesday Jul 25, 2006

Efficient way to do things


To find a particular class in all the jars within a folder and its sub folders -


for i in `find . -name "*.jar"`; do echo $i; jar tvf $i | grep TypeMappingRegistry; done


To find entry of a particular class in all the xml within a folder and its sub folders -

 for i in `find . -name "*.xml"`; do echo $i; grep qname.jar $i; done > /tmp/out

Comments:

great,very helpful!

Posted by wasedaxiao on July 31, 2006 at 01:53 PM IST #

Post a Comment:
Comments are closed for this entry.

Archives
Links
Referrers