Skip to content

Instantly share code, notes, and snippets.

@sorenmacbeth
Forked from strongh/findclass.sh
Created February 28, 2014 16:54
Show Gist options
  • Save sorenmacbeth/9274749 to your computer and use it in GitHub Desktop.
Save sorenmacbeth/9274749 to your computer and use it in GitHub Desktop.
#!/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