Not sure how to do this. There are a few thousand lines in file2 and a couple hundred lines in file1. Each line is a different hostname in each file.
file1:
v440,x-1-1,hostname1,80-9293w23,s/n 2222,yes,0,0,1.1,07/12/2009,07/23/2009,none,2,any,many
file2:
a10,,hostname1,e2900,renamed from hostname2
What I would like is if the hostname in file2 (column3) matches hostname in file1 (column 3) then append "e2900" column and "renamed from hostname2" column to the end of the line of file1, like this:
v440,x-1-1,hostname1,80-9293w23,s/n 2222,yes,0,0,1.1,07/12/2009,07/23/2009,none,2,any,many,e2900,renamed from hostname2
file1:
v440,x-1-1,hostname1,80-9293w23,s/n 2222,yes,0,0,1.1,07/12/2009,07/23/2009,none,2,any,many
file2:
a10,,hostname1,e2900,renamed from hostname2
What I would like is if the hostname in file2 (column3) matches hostname in file1 (column 3) then append "e2900" column and "renamed from hostname2" column to the end of the line of file1, like this:
v440,x-1-1,hostname1,80-9293w23,s/n 2222,yes,0,0,1.1,07/12/2009,07/23/2009,none,2,any,many,e2900,renamed from hostname2