Sha256: b3c766f6b88c7039a57b98ab34ab61e5f95df9d996454852643d24d3eb20324c
Contents?: true
Size: 538 Bytes
Versions: 4
Compression:
Stored size: 538 Bytes
Contents
# puts "executing delimited.ctl" source :in, { :file => 'delimited.txt', :parser => :csv }, [ :first_name, :last_name, :ssn, { :name => :age, :type => :integer }, :sex ] transform :ssn, :sha1 transform(:ssn){ |v| v[0,24] } transform :sex, :decode, {:decode_table_path => 'delimited_decode.txt'} destination :out, { :file => 'delimited.out.txt' }, { :order => [:first_name, :last_name, :name, :ssn, :age, :sex], :virtual => { :name => Proc.new { |row| "#{row[:first_name]} #{row[:last_name]}" } } }
Version data entries
4 entries across 4 versions & 3 rubygems