Skip to content

Instantly share code, notes, and snippets.

@munky69rock
Created February 18, 2014 11:48
Show Gist options
  • Select an option

  • Save munky69rock/9069483 to your computer and use it in GitHub Desktop.

Select an option

Save munky69rock/9069483 to your computer and use it in GitHub Desktop.
#!/bin/bash
if [ $# -gt 0 ];then
find . -type f -name "*jar" -exec bash -c "echo {}: >&2 && unzip -l {}" \; | grep $1 --color
else
echo "Usage: $0 [classname]"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment