matching - Using Ruby to Find Common Lines in X files -
I now have 3 files, but I want to do it in such a way that I can add it later. Each file has a list of IDs, such as
174535945 174538045 160515924 81712260 25241494
I should have items that appear in the list of items 1 and list 2, list 2 and list 3, and list 1 and list 2 and list 3.
Will each list have the most ruby method to create a hash with one key, and then get all the keys and test
>
set:
'set' list_1 = open (filename_1) is required. Read.split.to_set list_2 = open (filename_2) .read.split.to_set list_3 = open (filename_3) .read.split.to_set insert list_1 & amp; List_2 lists_2 & amp; List_3 list list & amp; List_2 & amp; List_3
Comments
Post a Comment