Sha256: 00e3083fb7937176d17c85f40e076dc62cccd9a4d1a0604bba363b1ee21762d5

Contents?: true

Size: 505 Bytes

Versions: 10

Compression:

Stored size: 505 Bytes

Contents

#!/usr/bin/env ruby

require 'rbbt-util'
require 'rbbt/util/simpleopt'

options = SOPT.get("-tch--tokyocabinet:-tcb--tokyocabinet_bd")

file = ARGV.shift

file = STDIN if file == '-'

case
when options[:tokyocabinet]
  tsv = Persist.open_tokyocabinet(file, false)
when options[:tokyocabinet_bd]
  tsv = Persist.open_tokyocabinet(file, false, nil, TokyoCabinet::BDB)
else
  if String === file
    file = file.dup
    Path.setup(File.expand_path(file))
  end
  tsv = TSV.open(file)
end

puts tsv.unzip.to_s

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rbbt-util-5.6.11 share/rbbt_commands/tsv/unzip
rbbt-util-5.6.10 share/rbbt_commands/tsv/unzip
rbbt-util-5.6.9 share/rbbt_commands/tsv/unzip
rbbt-util-5.6.8 share/rbbt_commands/tsv/unzip
rbbt-util-5.6.7 share/rbbt_commands/tsv/unzip
rbbt-util-5.6.6 share/rbbt_commands/tsv/unzip
rbbt-util-5.6.5 share/rbbt_commands/tsv/unzip
rbbt-util-5.6.4 share/rbbt_commands/tsv/unzip
rbbt-util-5.6.3 share/rbbt_commands/tsv/unzip
rbbt-util-5.6.2 share/rbbt_commands/tsv/unzip