I’m not a master of the language yet, but based on what I’ve learned,
can’t you create two arrays out of those files, let’s say sheet1,
sheet2.
Then simply do a “sheet2 - sheet1”
Determining what items are unique to the first array. (What items
are in the first list that are not in the second?) Note order matters
here.
irb(main):008:0> sheet2 - sheet1
=> [“anthony”, “wayne”, “bill”, “randy”, “thalia”, “trishi”, “ricky”,
“sachin”]
irb(main):009:0> sheet1-sheet2
=> [“vipul”, “john”, “mac”, “smith”]
irb(main):010:0>
-Tim
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.