Skip to content

Instantly share code, notes, and snippets.

@squarepegsys
Created June 17, 2011 19:18

Revisions

  1. @invalid-email-address Anonymous created this gist Jun 17, 2011.
    9 changes: 9 additions & 0 deletions grepJars.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    # handiest shell function/alias I have ever written

    function grepJars() {

    for x in `find . -name "*.jar"`; do
    echo $x
    unzip -l $x|grep $1
    done
    }