I have 30 seperate files which are opened individually and from each file infomation is extracted,
N(8) -- H(15) .. O(9)
N(8) -- H(16) .. O(9)
N(8) -- H(15) .. O(9)
N(8) -- H(15) .. N(8)
N(8) -- H(16) .. O(9)
Note all the information from all 30 files is stored in an array called @contact_type.
What I want to do is go through @contact_type and list the lines which contain the pattern
So iterating over the information from file 1 should not output any lines, but from file 2 both the H(15) lines should be displayed as H(15) is repeated in both.
Note I wish to write this as general as possible as letters and numbers can change.