Right now I have 3 files, but I'd like to do this in a way that I can add more later. Each file is a list of IDs, like this.
174535945 174538045 160515924 81712260 25241494
I'd like the output to be the items that appear in list 1 and list 2, list 2 and list 3, and those that occur in list 1 and list 2 and list 3.
Would the most ruby way to be create a hash with a key for each list, and then get all keys and test against all hashes, or is there a nice gem that would help with this?
Thanks,