加入3档由第一列与加盟(AWK是)? [英] join 3 files by first Column with join (was awk)?

查看:150
本文介绍了加入3档由第一列与加盟(AWK是)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有三个类似的文件,他们都是这样的:

i have three similar files, they are all like this:

ID1 Value1a
ID2 Value2a
  .
  .
  .
IDN Value2n

,我想这样的输出

and i want an output like this

ID1 Value1a Value1b Value1c
ID2 Value2a Value2b Value2c
.....
IDN ValueNa ValueNb ValueNc

寻找到第一线,我想value1A是在的fileA ID1的值时,value1B ID1中FILEB值,依此类推,其中每个字段和每一行。我这吼声像SQL JOIN。我试过几件事情,但没有人在那里甚至接近。

Looking to the first line, i want value1A to be the value of id1 in fileA, value1B the value of id1 in fileB, and so on which each field and each line. I thougth it like a sql join. I've tried several things but none of them where even close.

编辑:所有文件具有相同的长度和IDS

All files have the same length and ids.

推荐答案

(1)一试

join fileA fileB | join - fileC

这篇关于加入3档由第一列与加盟(AWK是)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆