aboutsummaryrefslogtreecommitdiff
path: root/rb-test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'rb-test.rb')
-rw-r--r--rb-test.rb12
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