Skip to content

Instantly share code, notes, and snippets.

@pinpox
Created August 17, 2015 23:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pinpox/b0e3ce3c33fb642b7a23 to your computer and use it in GitHub Desktop.
Save pinpox/b0e3ce3c33fb642b7a23 to your computer and use it in GitHub Desktop.
# 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