I have two files I want to match ids in the 5th column of the file 1 with the first column of the file 2 and get the description for the matched ids as shown in the output
sno nm no nm2 ID
1 cc 574372 yyyi |6810|51234|
2 bb 119721 nmjk |6810|51234|51179|
3 ab 54161 mkkjn |48193|46907|
ID Description
6810 verygood_output
51234 Awesome work
46907 notbad
51179 excellent effort
48193 can do better
output format
sno nm no nm2 Description
1 cc 574372 yyyi verygood_output;Awesome work
2 bb 119721 nmjk verygood_output;Awesome work;excellent effort
3 ab 54161 mkkjn notbad;can do better