Hey guys and girls.
Im taking my first steps out into the world of perling, but i think ive jumped in too fast!
Im trying to extract matching lines from File2 based on a list in File1 (and then just paste it into File3)
Formats:
File1
Code:
GP_MASA_01F04_c
GP_MASA_33B06_c
GP_MASA_24D04_c
GP_MASA_19B08_c
GP_MASA_43C06_c
File2
Code:
GP_MASA_01F04_c,544213...etc
GP_MASA_38C02_c,43621...etc
GP_MASA_33B06_c,3253...etc
GP_MASA_43C06_c,12524...etc
GP_MASA_32B06_c,57432...etc
GP_MASC_05A08_c,24236...etc
GP_MASC_02A12_c,23432...etc
GP_MASC_01F04_c,232346...etc
I know what Im doing grep wise, so then put a while loop around it yeah?
Any help would be much appreciated!
Dan