How to merge two single column csv files with linux commands

Posted by user1328191 on Stack Overflow See other posts from Stack Overflow or by user1328191
Published on 2012-04-12T05:16:09Z Indexed on 2012/04/12 5:29 UTC
Read the original article Hit count: 342

Filed under:
|

I was wondering how to merge two single column csv files into one file where the resulting file will contain two columns.

file1.csv
   first_name
   chris
   ben
   jerry

file2.csv
   last_name
   smith
   white
   perry

result.csv
   first_name,last_name
   chris,smith
   ben,white
   jerry,perry

Thanks

© Stack Overflow or respective owner

Related posts about linux

Related posts about csv