in reply to Loop through 2 files in parallel

It appears to me that you have two arrays and where something is in common, you want those elements printed with elements of only one occurance having a blank line? Just trying to figure out exactly what you're trying to do.

Replies are listed 'Best First'.
Re^2: Loop through 2 files in parallel
by rwitmer (Initiate) on Nov 10, 2010 at 20:15 UTC
    Sorry, I probably wasn't clear the first time. What I have is two very similar files, but one file is missing some lines. I want to make the files have the same number of lines, but I don't want to scroll through the two files in two different text editors, pushing enter where the lines don't match. Does that make sense? Basically, the first file has a complete list of things and the second one is missing some, but there's nothing there to show which ones are missing. I want to put in a blank line where there is something missing from the second list.