Sha256: 68aadbfb31314d877f56f18ef9318c741258432ff43c030ca34eea899239d315

Contents?: true

Size: 377 Bytes

Versions: 1

Compression:

Stored size: 377 Bytes

Contents

require 'rubygems'
require 'configliere'
require 'json'
require 'multi_json'

Settings.use :commandline
Settings.use :config_block
Settings.define :dump
Settings.define :field
Settings.resolve!

def get_value_counts(dump, field)
  File.open(dump).each do |line|
    record = MultiJson.load(line)
    puts record[field]
  end
end

get_value_counts(Settings.dump, Settings.field)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wonderdog-0.2.0 squirrel/getFields.rb