Created
November 16, 2020 14:33
-
-
Save jpmonettas/a5278163ecd975e2010e904d858a60f8 to your computer and use it in GitHub Desktop.
Find classes in your clojure classpath
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/bash | |
SEARCH_TERM=$1; | |
for jar in $(clj -Spath | tr ":" "\n" | grep -E ".jar$"); do | |
jar -tf "$jar" | grep -i --color $SEARCH_TERM && echo "^----$jar \n"; | |
done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From inside a REPL: