Skip to content

Instantly share code, notes, and snippets.

@thomashartm
Last active February 11, 2016 20:34
Show Gist options
  • Save thomashartm/a02762f8bc1a802a3483 to your computer and use it in GitHub Desktop.
Save thomashartm/a02762f8bc1a802a3483 to your computer and use it in GitHub Desktop.
#!/bin/bash
# first argument: file
# second argument: searchstring
#
find "$1" -name "*.jar" -exec sh -c 'jar -tf {}|grep -H --label {} '$2'' \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment