this is probably a fairly easy task, but my scripting skills aren't up to par.
I need to take one plaintext file, and throw away any line that appears identically in any one of a series of plain text files.
The trick is that the lines will not be in the same order.
For example, an input file with the data
Code:
1
2
3
4
5
6
and two test files,
Code:
6
2
4
Code:
7
5
should return
Code:
1
3
I figure that the easiest way to write this is with one script that compares two files, then a second script to pass the output to the comparison with the next file. However, my attempts at the first piece have failed.
Everywhere I've turned shows me ways to compare two files line-by-line, which is NOT what i'm after here.
Thank you for your assistance.