Created
September 13, 2012 14:08
-
-
Save rahearn/3714541 to your computer and use it in GitHub Desktop.
Search through a directory of jar files for a class
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ $# -eq 0 ]; then | |
search_for="." | |
else | |
search_for=$1 | |
fi | |
for file in `find . -type f -name "*.jar"`; do | |
echo "Scanning $file..." | |
jar tfv $file | grep $search_for | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment