Created
August 17, 2015 23:38
-
-
Save pinpox/b0e3ce3c33fb642b7a23 to your computer and use it in GitHub Desktop.
This file contains 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
# encoding: utf-8 | |
require 'csv' | |
if ARGV[0].nil? | |
puts "Please pass a filename" | |
else | |
contacts = CSV.read(ARGV[0]) | |
header = true | |
contacts.each do |a| | |
if header | |
header = false | |
else | |
puts "#{a[0]}: #{a[1]} <#{a[28]}>" unless a[0].nil? or a[28].nil? | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment