writing the content of two files to a single file horizontally

Hi all,

  assume that i am having two files file.1 and file.2

these are the contents of file.1

these are the contents of file.2

i want these two contents to be written in another single file like this.

can you please post your suggestions.

Thanks in advance,
Anish

Check out the paste command.

Hi,

use the following command for this in this given formate.

paste file1 file2 > file3

file3 is the correct file of your requirement.

regards
rajesh

1 Like

Hi,

Thanks that works