Categories
Linux Mastering Development

How to find a matching value in a file and than replace that value in another file?

I have a space separated file like this:(it has 1775 lines) head output.fam 0 ALIKE_g_1LTX827_BI_SNP_F01_33250.CEL 0 0 0 -9 0 BURRY_g_3KYJ479_BI_SNP_A12_40182.CEL 0 0 0 -9 0 ABAFT_g_4RWG569_BI_SNP_E12_35136.CEL 0 0 0 -9 0 MILLE_g_5AVC089_BI_SNP_F02_35746.CEL 0 0 0 -9 0 PEDAL_g_8WWR250_BI_SNP_B06_37732.CEL 0 0 0 -9 … and a comma separated file phg000008.individualinfo (that has 1838 lines): #Phen_Sample_ID […]