youngblood.carl
unread,Mar 30, 2009, 10:02:26 PM3/30/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Compojure
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