LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Is there a command to merge two files as two columns of one file? (https://www.linuxquestions.org/questions/linux-general-1/is-there-a-command-to-merge-two-files-as-two-columns-of-one-file-344621/)

davee 07-19-2005 08:30 AM

Is there a command to merge two files as two columns of one file?
 
I've two files with, say, the following data

File1:

xxxx
xxxx
xxxx

File2:

yyyy
yyyy
yyyy

I would like to create file3 with:

xxxx yyyy
xxxx yyyy
xxxx yyyy

How can I do this...?

Cheers, Davee

ahh 07-19-2005 09:15 AM

Try
Code:

paste File1 File2

davee 07-19-2005 10:52 AM

Thanks for that - another to add to the armoury...!

Dave


All times are GMT -5. The time now is 04:18 PM.