Question : How to mix two files?

Hello group,

I have to text file file1 and file2.

How can I mix them such that their columns stand next by together (either in bash or PHP)?

file1 has:

A
B
C
D
E
F

file2 has

1
2
3
4
5
6


mixed file or file3 should be:

A 1
B 2
C 3
D 4
E 5
F 6

any help is appreciated.

Regards,
ak

Answer : How to mix two files?

#!/bin/bash
paste file1 file2 > file3
Random Solutions  
 
programming4us programming4us