Created
June 21, 2019 04:55
-
-
Save ioquatix/b46a5c6b215e4db7b2b31b18d9f43084 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'csv' | |
require 'logger' | |
logger = Logger.new($stdout) | |
CSV do |csv| | |
5.times do | |
logger.info "Generating row..." | |
csv << ['1', '2', '3'] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you run this:
rows.rb > output.csv
output.csv
contains the following:Is that what you wanted?