How to add a column from a file to another file

前端 未结 3 1794
梦谈多话
梦谈多话 2020-12-25 11:31

I have a file with two columns as

1 1
2 3
3 4

and a file with one column as

6
7
9

I would like to add the

3条回答
  •  鱼传尺愫
    2020-12-25 12:26

    A pure bash solution can be:

    exec 3

    Infiles:

    cat >onefile <twofile <

    Output:

    1 1 6
    2 3 7
    3 4 9
    

提交回复
热议问题