Sha256: 21ef0a1d320491fdd06a653b7d2028cfcf625fcc901ccf8661a093d82472918f

Contents?: true

Size: 499 Bytes

Versions: 151

Compression:

Stored size: 499 Bytes

Contents

#!/usr/bin/env ruby

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

options = SOPT.setup <<EOF
Read a TSV file and dump it

$ rbbt tsv read [options] <filename.tsv|->

Use - to read from STDIN

-k--key_field* Key field
-f--fields* Fields
-t--type* Type
-m--merge* Merge from multiple rows
-h--help Print this help

EOF
rbbt_usage and exit 0 if options[:help]

file = ARGV.shift

file = STDIN if file == '-'

tsv = TSV.open file, :merge => true, :type => :double

puts tsv.to_unmerged_expanded_s

Version data entries

151 entries across 151 versions & 1 rubygems

Version Path
rbbt-util-5.34.17 share/rbbt_commands/tsv/uncollapse
rbbt-util-5.34.16 share/rbbt_commands/tsv/uncollapse
rbbt-util-5.34.15 share/rbbt_commands/tsv/uncollapse
rbbt-util-5.34.14 share/rbbt_commands/tsv/uncollapse
rbbt-util-5.34.13 share/rbbt_commands/tsv/uncollapse
rbbt-util-5.34.12 share/rbbt_commands/tsv/uncollapse
rbbt-util-5.34.11 share/rbbt_commands/tsv/uncollapse
rbbt-util-5.34.10 share/rbbt_commands/tsv/uncollapse
rbbt-util-5.34.9 share/rbbt_commands/tsv/uncollapse
rbbt-util-5.34.8 share/rbbt_commands/tsv/uncollapse
rbbt-util-5.34.7 share/rbbt_commands/tsv/uncollapse
rbbt-util-5.34.5 share/rbbt_commands/tsv/uncollapse
rbbt-util-5.34.4 share/rbbt_commands/tsv/uncollapse
rbbt-util-5.34.3 share/rbbt_commands/tsv/uncollapse
rbbt-util-5.34.2 share/rbbt_commands/tsv/uncollapse
rbbt-util-5.34.1 share/rbbt_commands/tsv/uncollapse
rbbt-util-5.34.0 share/rbbt_commands/tsv/uncollapse
rbbt-util-5.33.21 share/rbbt_commands/tsv/uncollapse
rbbt-util-5.33.20 share/rbbt_commands/tsv/uncollapse
rbbt-util-5.33.19 share/rbbt_commands/tsv/uncollapse