Hi all,
I wonder if anyone could help me: I want to merge 3 files
together as shown below
I've seen the post adding columns from 01-05-2002, 09:23 AM
so know how to put 2 files together
basically I want to take output file of 1st merge and merge it with a 3rd file
but only start the merging at the n'th line of the file
so got output something like
line1 file1 line1 file2
line2 file1 line2 file2
line3 file1 line1 file3
line4 file1 line2 file3
line5 file1 line3 file3
for eample
file1:
2 3 0
6 2 0
2 3 1
5 3 1
6 9 1
file2
2 2 2
2 2 2
paste -d " " file1 file2 >"outputfile1"
outputfile1
2 3 0 2 2 2
6 2 0 2 2 2
2 3 1
5 3 1
6 9 1
now I want to merge in file3 from the 1st line with col3==0
file3
3 3 3
3 3 3
3 3 3
giving me outputfile2 to look like
outputfile1
2 3 0 2 2 2
6 2 0 2 2 2
2 3 1 3 3 3
5 3 1 3 3 3
6 9 1 3 3 3
Thanks a million for any suggestions offered
Best Regards,
Olga
