【发布时间】:2016-10-23 12:17:19
【问题描述】:
我想比较 file1 和 file2 的前 4 列。我想打印 file1 中的所有行 + file2 中不在 file1 中的行。
File1:
2435 2 2 7 specification 9-8-3-0
57234 1 6 4 description 0-0 55211
32423 2 44 3 description 0-0 24242
File2:
2435 2 2 7 specification
7624 2 2 1 namecomplete
57234 1 6 4 description
28748 34 5 21 gateway
32423 2 44 3 description
832758 3 6 namecomplete
output:
2435 2 2 7 specification 9-8-3-0
57234 1 6 4 description 0-0 55211
32423 2 44 3 description 0-0 24242
7624 2 2 1 namecomplete
28748 34 5 21 gateway
832758 3 6 namecomplete
我不明白如何打印不匹配的内容。
【问题讨论】:
标签: linux file awk grep console