I just thought I would put in my 2 cents. I actually had to create a 
script that would run through a file and find all the duplicate account 
numbers and the number of times they were duplicated and write that to a 
new file.

@lines = Hash.new(0)
@group = Array.new
IO.readlines("C:/test/" + @file).each { |line| 
@lines[line.split(';')[5].chomp] += 1 }
@lines.each_pair { |k,v| @group << k.to_s + " => " + v.to_s if v > 1 }


This is a part of the file that reads the file and grabs the duplicates



~Jeremy
-- 
Posted via http://www.ruby-forum.com/.