[Solved] combine two files

All,

I have two files. each file contain same number of lines. means if file 1 contain 10 line then file 2 also contain 10 line.
1.

 
scp userid@server:/tmp/a1.txt
scp userid@server:/tmp/a2.txt
scp userid@server:/var/adm/a3.txt
/tmp/
/tmp/
/var/adm/

Now I want my O/P as below.

scp userid@server:/tmp/a1.txt /tmp/
scp userid@server:/tmp/a2.txt /tmp/
scp userid@server:/var/adm/a3.txt /var/adm/

Please suggest me how I can use in script.

paste -d" " file1 file2
1 Like

Thanks a lot. It worked.