开发者

adding a new data column in a file consisting of 4 columns

开发者 https://www.devze.com 2023-03-13 13:00 出处:网络
I have two tab delimited files: File 1: 12 rows and 1 column File 2: 12 rows and 4 columns I want to merge these two files i.e., I have a new file of 12 rows and 5 columns (last column should be from

I have two tab delimited files: File 1: 12 rows and 1 column File 2: 12 rows and 4 columns

I want to merge these two files i.e., I have a new file of 12 rows and 5 columns (last column should be from file 1.

An开发者_开发问答y suggestions for shell script


You can use paste for that:

paste file2 file1
0

精彩评论

暂无评论...
验证码 换一张
取 消