Sha256: a61bb53b61718dce45524af4083ac7c594c670c134253a53322828c0b02e9f93

Contents?: true

Size: 491 Bytes

Versions: 498

Compression:

Stored size: 491 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 == '-'

stream = TSV.get_stream file
s = TSV.collapse_stream stream
puts s.stream.read

Version data entries

498 entries across 498 versions & 1 rubygems

Version Path
rbbt-util-5.33.17 share/rbbt_commands/tsv/collapse
rbbt-util-5.33.16 share/rbbt_commands/tsv/collapse
rbbt-util-5.33.15 share/rbbt_commands/tsv/collapse
rbbt-util-5.33.14 share/rbbt_commands/tsv/collapse
rbbt-util-5.33.13 share/rbbt_commands/tsv/collapse
rbbt-util-5.33.12 share/rbbt_commands/tsv/collapse
rbbt-util-5.33.11 share/rbbt_commands/tsv/collapse
rbbt-util-5.33.9 share/rbbt_commands/tsv/collapse
rbbt-util-5.33.8 share/rbbt_commands/tsv/collapse
rbbt-util-5.33.7 share/rbbt_commands/tsv/collapse
rbbt-util-5.33.6 share/rbbt_commands/tsv/collapse
rbbt-util-5.33.5 share/rbbt_commands/tsv/collapse
rbbt-util-5.33.4 share/rbbt_commands/tsv/collapse
rbbt-util-5.33.3 share/rbbt_commands/tsv/collapse
rbbt-util-5.33.2 share/rbbt_commands/tsv/collapse
rbbt-util-5.33.1 share/rbbt_commands/tsv/collapse
rbbt-util-5.33.0 share/rbbt_commands/tsv/collapse
rbbt-util-5.32.30 share/rbbt_commands/tsv/collapse
rbbt-util-5.32.28 share/rbbt_commands/tsv/collapse
rbbt-util-5.32.27 share/rbbt_commands/tsv/collapse