0

I need to output the lines from file1 that are not found in file2, ideally using linux commandline.

Both files are uppercase A-Z, sorted, per-file unique, and contain only one word per line. Typically, file1 is between 5 and 100 lines long, file2 is 250,000 lines long. Processing speed is not an issue.

4

1 回答 1

3
grep -vhFxf file1 file2

效果很好。

于 2013-04-25T13:14:34.357 回答