From 73bce6b2090b501cd9e2fa20ec1e22ea291bb177 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Wed, 31 Aug 2016 17:22:57 -0400 Subject: commit outstanding changes --- rb-test.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 rb-test.rb (limited to 'rb-test.rb') diff --git a/rb-test.rb b/rb-test.rb new file mode 100644 index 0000000..973c8cf --- /dev/null +++ b/rb-test.rb @@ -0,0 +1,12 @@ +#!/usr/bin/env ruby + +require 'csv' + +# get paths +src_path, dst_path = ARGV + +CSV.open(dst_path, 'wb') do |dst| + CSV.foreach(src_path) do |row| + dst << (row += %w{foo} * 2) + end +end -- cgit v1.2.3