Created
June 19, 2014 16:45
-
-
Save abrambailey/a85d17f9082deb979574 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
require 'csv' | |
require 'street_address' | |
require 'logger' | |
log = Logger.new(STDERR) | |
count = 0 | |
# puts CSV.generate(ARGV[1]) do |csv| | |
CSV.foreach(ARGV[0], :headers => true) do |row| | |
if (count == 0) | |
# csv << row | |
count += 1 | |
next | |
end | |
address = StreetAddress::US.parse(row[4]) | |
puts address.to_s.empty? ? "*" + row[4] : address | |
count += 1 | |
end | |
# end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment