Skip to content

Instantly share code, notes, and snippets.

@afeld
Created October 20, 2014 05:44
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 afeld/70a6e16d8a2d85887dfa to your computer and use it in GitHub Desktop.
Save afeld/70a6e16d8a2d85887dfa to your computer and use it in GitHub Desktop.
find duplicate Eventbrite orders
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