#!/usr/bin/env ruby require 'spreadsheet' source, target = ARGV if source.nil? puts "Usage: #{$0} []" exit -1 end target = target ? File.open(target, 'w') : STDOUT reader = Spreadsheet::Excel::Reader.new :print_opcodes => target reader.setup File.open(source) while tuple = reader.get_next_chunk end