I have a delim-tab file
ID NAME FAMILYTAG EFFECT
001 John Black Positive
002 Kate Rhodes,Mich Positive
003 Aaron Sunders Negative
004 Shirley Rhodes Negative
005 Dexter Sunders,Hark Positive
I want to input this file(which is much larger) and read in a name for eg: Kate. I want the script to read Kate, recognize it's family tag i.e it contains "Rhodes" and then output the other family member i.e Shirley. Is there a way to do this? The output file will look like this
Kate Rhodes
Shirley Rhodes