mainly linux related ;-)
Search for the word gif
and print the number of occurrences within the jars.
f ()
{
find . -name '*.jar' -exec bash -c "echo -n '{} ' ; unzip -p {} | strings | grep -ci '$1' " \; | sort -n -k 2
}
for more background about bash-functions see general HowTo and usage/OS integration