0

I want to merge two CSV without any condition and no primary.It should be first row file1 and file2.

file1

id,name,city

file2

mobileno,address,email

output

id,name,city,mobileno,address,,email

can you please let me know how can i achive this output

  • 1
    Are we to assume that the double comma in the output is a typo? – Kusalananda Feb 16 '18 at 12:14
5

Use paste and set the delimiter to comma as opposed to tab with -d:

paste -d, file1 file2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.