Skip to content

Instantly share code, notes, and snippets.

@nicerobot
Created April 17, 2012 01:27
Show Gist options
  • Save nicerobot/2402770 to your computer and use it in GitHub Desktop.
Save nicerobot/2402770 to your computer and use it in GitHub Desktop.
Find classes in jar files.
#!/bin/sh
jarfind() {
find ${2:-.} -name '*.jar' | while read j; do
f=$(jar ft ${j} | grep ${1}) && echo ${j} ${f}
done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment