Skip to content

Instantly share code, notes, and snippets.

@squarepegsys
Created June 17, 2011 19:18
Show Gist options
  • Save squarepegsys/1032090 to your computer and use it in GitHub Desktop.
Save squarepegsys/1032090 to your computer and use it in GitHub Desktop.
grepJars -- how to find a class in a directory of jar files
# handiest shell function/alias I have ever written
function grepJars() {
for x in `find . -name "*.jar"`; do
echo $x
unzip -l $x|grep $1
done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment