
Untitled
By: a guest on
May 3rd, 2012 | syntax:
None | size: 0.48 KB | hits: 12 | expires: Never
Is there a command line tool to tell me which JAR a particular Class is in
find . -name *jar -exec jaregrep -l "org.bob.PriceListViewUpdate" {} ;
REST/prices.jar
v2/REST/prices.jar
grep -rail --include=*.jar org.bob.PriceListViewUpdate
#!/bin/sh
find $1 -name *jar | while read JARFILE
do
COUNT=$(unzip -qq -l "$JARFILE" "$2" | wc -l)
if [ $COUNT -gt 0 ] ; then
echo "$JARFILE: $COUNT matches"
fi
done
./findclass.sh workspace-indigo/ org/objectweb/*