Hello
i wish to add information to one of my files based on matching IDs, here is an example
(the id is the 3 colunm)
File1.txt
v0001 bird 45
v0002 bird 47
v0003 cat 50
v0004 dog 56
v0005 dog 78
(the ID is the 2 colunm)
File2.txt
bird 45 age_7
cat 50 age_6
dog 56 age_5
and the output i wish to be
OUTPUT:
v0001 bird 45 age_7
v0002 bird 47
v0003 cat 50 age_6
v0004 dog 56 age_5
v0005 dog 78
so as you can see the ones that do not match are still present, and the ones that do match just have the extra information from file2.txt added to them.
i thought about using join but that only seems to join the ones that match displays thoes only. i would like all the information in the output file
please help! thank you all
