underthewood
Programmer
- Nov 8, 2010
- 4
Hey, im afraid Ive got another question!
What I need to do is compare two text files that have identical formatting.
Both files have this sort of format as column headings:
n1 n2 n3 n4 n5 n6 <NUMBER>
One of the files is a complete list, with these as the headings, and values go down the list in increasing order of n1. The other file has a list under these headings, but there are substantial rows missing.
However, in the incomplete list, there will be a row with n1, n2, n3, n4, n5, n6 corresponding to another row in the complete list. The only thing different is the <NUMBER>.
Is there are a way of taking a row from one list, matching it with the same format in the other list, and replacing the entire row in that other list (ie replacing the <NUMBER> for a given n1, n2, n3, n4, n5, n6)?
Thanks
What I need to do is compare two text files that have identical formatting.
Both files have this sort of format as column headings:
n1 n2 n3 n4 n5 n6 <NUMBER>
One of the files is a complete list, with these as the headings, and values go down the list in increasing order of n1. The other file has a list under these headings, but there are substantial rows missing.
However, in the incomplete list, there will be a row with n1, n2, n3, n4, n5, n6 corresponding to another row in the complete list. The only thing different is the <NUMBER>.
Is there are a way of taking a row from one list, matching it with the same format in the other list, and replacing the entire row in that other list (ie replacing the <NUMBER> for a given n1, n2, n3, n4, n5, n6)?
Thanks