I have two files in this format
file1= filename val1 val2
file2= filename val3 val4
I want to compare file names, and if they have the same names, I want to get a third file, for example:
filename val1 val2 val3 val4
I select the file name from file1and iterate over file2to see if I get it. Then search for the pointer back to the beginning file2for the next file name. Is there a more efficient way to do this?
source
share