Skip to content

Instantly share code, notes, and snippets.

@natematias
Created June 30, 2014 21:12
Show Gist options
  • Save natematias/7b00052299c869e7cc6b to your computer and use it in GitHub Desktop.
Save natematias/7b00052299c869e7cc6b to your computer and use it in GitHub Desktop.
require 'csv'
emails = CSV.read(ARGV[0])
emails.shift
full_emails = []
emails.each do |email|
if(!email[0].nil? and email[0].strip.size>0)
full_emails << email[0].strip
end
end
puts full_emails.join(",")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment