Hi All,
I've got file1 like this:
Code:
aaa bbb ccc
ddd eee fff
ggg hhh kkk
ppp mmm nnn
and file 2 like this:
Code:
aaa qqq www
ddd fff ggg
ggg sss zzz
ppp vvv yyy
and file 3 like this:
I need to match the first column of file3 and file1, then add the rest of the file 1 to the file3. The result would be:
Code:
aaa bbb ccc
ggg hhh kkk
ppp mmm nnn
Then again match the first column and add the rest of the file2. The result would be:
Code:
aaa bbb ccc qqq www
ggg hhh kkk sss zzz
ppp mmm nnn vvv yyy
I've got many files and each of them has matching patterns in first column and then loads of columns that I need to all add into one file. Hope this is not too confusing :-)
Any help will be GREATLY appreciated! It doesn't need to be a big loop or anything, I don't mind if someone could help me with the first step only...
Many thanks!