From: Martin DeMello Date: 2008-08-22T09:47:56+09:00 Subject: Re: want to compare data in two files. On Thu, Aug 21, 2008 at 1:01 PM, 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