hi,
i used paste file1.txt file2.txt > file3.txt
to merge 2 columns from file1 and 4 columns from file2.
file1
scaffold_217 scaffold_217
file2
CHRSM N scaffold_217.pf scaffold_217.fsa
the result is as follows:-
scaffold_217 scaffold_217
CHRSM N scaffold_217.pf scaffold_217.fsa
however, i need output like this (in 1 row separated by tab) like below:
scaffold_217 scaffold_217 CHRSM N scaffold_217.pf scaffold_217.fsa
How to do this using sed or awk? would appreciate your help on this. thanks