Hey Ya'll,

If you're ever wondering where something is defined, I put together
this shell script tonight. Just save it, chmod it to be executable,
and run ./foo.sh text-to-search-for

#!/bin/sh
find . -name "*.jar" | xargs -tn1 -I "%" sh -c 'jar tf "%" | grep .clj
| xargs -tn1 unzip -p "%" | grep -H --color '$1

I know the -H is extraneous in the final grep but I find the
formatting helps it stand out when it gets a hit.

Best,
Carl
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to