Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
find classes in classpath. assumes a leiningen project. useful for finding bundled deps. usage is e.g. ``` $ ./findclass.sh MyTerribleClass ```
#!/bin/sh
TMPCP=/tmp/badcp.txt
lein cp | tr ':' '\n' > $TMPCP
while read line; do
find "$line" -name "*.jar" -exec sh -c 'jar -tf {}| grep -H --label {} '$1'' \;
done < "$TMPCP"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment