jgoodsen (owner)

Revisions

  • 6588a0 Tue Mar 31 14:07:21 -0700 2009
gist: 88404 Download_button fork
public
Public Clone URL: git://gist.github.com/88404.git
Embed All Files: show embed
Text only #
1
2
3
4
5
6
7
8
9
10
11
12
13
##
## Grep through several jar files and tell me which jar matches the term.
##
## Usage: jargrep <expression> <jar file list>
##
 
search_term=ARGV.shift
ARGV.each do |jarfile|
command = "jar tvf #{jarfile} | grep #{search_term}"
puts "#{jarfile}"
system command
end