Created
October 20, 2014 05:44
-
-
Save afeld/70a6e16d8a2d85887dfa to your computer and use it in GitHub Desktop.
find duplicate Eventbrite orders
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
require 'csv' | |
require 'pp' | |
csv = CSV.read('/Users/aidan/Downloads/Orders-13196243319.csv') | |
emails = csv.map{|c| c.last.downcase } | |
dupes = emails.select{ |e| emails.count(e) > 1 }.uniq | |
dupes.each do |dupe| | |
puts dupe | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment