Hi everybody
I am trying to merge many files in one files using paste or pr command but I am not able to resolve this issue.
The file are tab delimited like these:
1 4721519 4723118
1 5022468 5024918
1 7093519 7098118
2 19736573 19741172
2 21907973 21910572
2 22915182 22920279
2 22927075 22928479
3 5201000 5204399
3 6950250 6951199
3 7416800 7418599
3 7514200 7516799
3 8147000 8148799
The problem consist in maintening the columns separated after paste command, like this;
1 4721519 4723118 2 19736573 19741172 3 5201000 5204399
1 5022468 5024918 2 21907973 21910572 3 6950250 6951199
1 7093519 7098118 2 22915182 22920279 3 7416800 7418599
2 22927075 22928479 3 7514200 7516799
3 8147000 8148799
The paste command does not work for me
paste file1 file2 > file3
or
paste -d'\t' file1 file2 > file3
because my ouput is like that:
1 4721519 4723118 2 19736573 19741172 3 5201000 5204399
1 5022468 5024918 2 21907973 21910572 3 6950250 6951199
1 7093519 7098118 2 22915182 22920279 3 7416800 7418599
2 22927075 22928479 3 7514200 7516799
3 8147000 8148799
do you have any ideas?
Thank you