Skip to content

Instantly share code, notes, and snippets.

@rajeshg
Created September 13, 2010 21:58
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 rajeshg/578133 to your computer and use it in GitHub Desktop.
Save rajeshg/578133 to your computer and use it in GitHub Desktop.
#!/usr/local/bin/ruby -w
require 'csv'
CSV.foreach("contacts.csv") do |row|
name = row[0]
if name.nil?
# do nothing
elsif name.empty?
# do nothing
else
command = "google calendar add --cal \"Finelighters Birthdays\" \"#{name}'s Birthday #{row[1]}\""
puts command
`#{command}`
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment