unix: concatenate files by line

walla

Senior member
Jun 2, 2001
987
0
0
Is there a unix command/utility that can concatenate two files line-by-line?

Essentially, I have two sets of data, and they are matched by row but in two separate files. I would like to merge them into one file.

Can someone explain how to do this? Thanks.
 

drag

Elite Member
Jul 4, 2002
8,708
0
0
Try this:

paste -d "\n" file1 file2 > file3

Is that what you want?

Or maybe you want the data side by side?

paste file1 file2 > file3