Sha256: 84471274366b14350b6a4036dc7eee2cebee1274fbd64653329d475658beb19a

Contents?: true

Size: 263 Bytes

Versions: 26

Compression:

Stored size: 263 Bytes

Contents

#!/usr/bin/env ruby

require 'json'

TAB_REGEX = /\t/

STDIN.each_line do |line|
  output_object = {}
  fields = line.split(TAB_REGEX)
  ARGV.each_with_index do |argument, index|
    output_object[argument] = fields[index]
  end
  puts output_object.to_json
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
ix-cli-0.0.27 bin/ix-tsv-to-json
ix-cli-0.0.26 bin/ix-tsv-to-json
ix-cli-0.0.25 bin/ix-tsv-to-json
ix-cli-0.0.24 bin/ix-tsv-to-json
ix-cli-0.0.23 bin/ix-tsv-to-json
ix-cli-0.0.22 bin/ix-tsv-to-json
ix-cli-0.0.21 bin/ix-tsv-to-json
ix-cli-0.0.20 bin/ix-tsv-to-json
ix-cli-0.0.19 bin/ix-tsv-to-json
ix-cli-0.0.18 bin/ix-tsv-to-json
ix-cli-0.0.17 bin/ix-tsv-to-json
ix-cli-0.0.16 bin/ix-tsv-to-json
ix-cli-0.0.15 bin/ix-tsv-to-json
ix-cli-0.0.14 bin/ix-tsv-to-json
ix-cli-0.0.13 bin/ix-tsv-to-json
ix-cli-0.0.12 bin/ix-tsv-to-json
ix-cli-0.0.11 bin/ix-tsv-to-json
ix-cli-0.0.10 bin/ix-tsv-to-json
ix-cli-0.0.9 bin/ix-tsv-to-json
ix-cli-0.0.7 bin/ix-tsv-to-json