On Thu, Aug 21, 2008 at 1:01 PM, <viupljindal / gmail.com> wrote: > I have two CSV files and i want to find the duplicates records. > > For ex. > > Sheet1 Sheet2 > Vipul Anthony > John Wayne > Mac Bill > smith randy > Nick thalia > Trishi > ricky > sachin > Nick if it's just one word per line and the files aren't huge a = IO.readlines('sheet1') b = IO.readlines('sheet2') puts a & b martin