in reply to Re: comparing an ID fom one file to the records in the second file
in thread comparing an ID fom one file to the records in the second file
unless I missed something, I think that this isn't gonna work. When you read the first line of FILEID, you read the whole FILECOMPARE filehandle, and you won't have any data left to read from the second file for the the next lines of the first file. Besides, even if you fixed it to get back to the beginning of the first file, the solution would be quite inefficient, because it would be reading the second file again and again for each input line of the first file. It would also print scores of "no match" to the output, even when there is actually a match.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: comparing an ID fom one file to the records in the second file
by 1nickt (Canon) on Dec 01, 2017 at 18:58 UTC | |
by Laurent_R (Canon) on Dec 01, 2017 at 19:55 UTC |