如何匹配2个文件并导出到输出?

时间:2018-06-23 23:20:19

标签: awk grep

我有2个文件...

1.txt

quality@true.com:29d03982uj409382uj4e3nm432323209

2.txt

29d03982uj409382uj4e3nm432323209:false

output.txt

quality@true.com:false

1 个答案:

答案 0 :(得分:1)

join -t ":" -1 2 -2 1 1.txt 2.txt -o 1.1,2.2

输出:

quality@true.com:false

看看man join