I have a file1 which I want to replace last 2 columns of the file with 2 columns from another file 2.
For example:
File 1
A B C D E F
1 2 3 4 5 6
A B C D I J
File 2
a b
c d
e f
The final output would be:
A B C D a b
1 2 3 4 c d
A B C D e f
Any help appreciated.
For example:
File 1
A B C D E F
1 2 3 4 5 6
A B C D I J
File 2
a b
c d
e f
The final output would be:
A B C D a b
1 2 3 4 c d
A B C D e f
Any help appreciated.