Hi,
i have the files f1 and f2 like:
files f1:
c1 a1
c2 a2
c3 a3
file f2:
c1 b1
c2 b2
c3 b3
i want merge the f1 and f2 file to f3 file like:
c1 a1 b1
c2 a2 b3
c3 a3 b3........
....
.
.
please help me onthis.....
Hi,
i have the files f1 and f2 like:
files f1:
c1 a1
c2 a2
c3 a3
file f2:
c1 b1
c2 b2
c3 b3
i want merge the f1 and f2 file to f3 file like:
c1 a1 b1
c2 a2 b3
c3 a3 b3........
....
.
.
please help me onthis.....
check the join man page
Hi
use paste command for this senario,I think it will be help to u.
Paste F1 F2 > F3
Hi
use paste command for this senario,I think it will be help to u.
Paste F1 F2 > F3
have you tried it? does it give the correct output OP wants?
join -j 1 -o 1.1 1.2 2.2 f1 f2 > f3