diff options
author | Paul Duncan <pabs@pablotron.org> | 2016-08-31 17:22:57 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2016-08-31 17:22:57 -0400 |
commit | 73bce6b2090b501cd9e2fa20ec1e22ea291bb177 (patch) | |
tree | 9723e326a7600b96ee0757de92ff5baa9fdd260d /rb-test.rb | |
parent | 199d786cb4accd50375164d1f65336bb08441092 (diff) | |
download | csv-test-73bce6b2090b501cd9e2fa20ec1e22ea291bb177.tar.bz2 csv-test-73bce6b2090b501cd9e2fa20ec1e22ea291bb177.zip |
commit outstanding changes
Diffstat (limited to 'rb-test.rb')
-rw-r--r-- | rb-test.rb | 12 |
1 files changed, 12 insertions, 0 deletions
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 |