How can I merge two files?

前端 未结 4 761
别跟我提以往
别跟我提以往 2021-01-27 03:26

I have two files

File 1:

7118
7457
7591
7539
8001

File 2:

5003
5008
5011
5026
5028
5029
5031

Output t

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-27 04:09

    awk 'FNR==NR{a[$0];next}{ for(i in a) print i,$0 }' OFS="," file file1
    

提交回复
热议问题