I have two files:
file1:
A,D
B,E
C,F
file2:
G,H,I
J,K,L
Using awk
, I want to print:
A,D
B,E,I
C,F,L
How can I use awk
to achieve this?
|
I'll assume that extra field from the
These solution add a trailing comma to the first line. You can remove it by piping the above through |
||||