Thursday, September 16, 2004

script to find a class in jar files

Thanks to N. Jarvis for the guts of this:


#!/bin/bash


echo -n "Enter class name: "


read -e SEARCHEE


echo Beginning recursive search through jars $PWD for $SEARCHEE


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


No comments: