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 06:53 AM IST #

Post a Comment:
Comments are closed for this entry.
About

manishkg

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today