on-internet
← Community

Accessing data from a tab-delimited file

Stack Overflow ·

I have a tab-delimited file, for example: 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 actually much larger) and read in a name, for example Kate. Then I want the script to recognize its family tag, i.e. it contains Rhodes, and then output the other family member Shirley. Is there a way to do this? The output file will look like this. Kate Rhodes Shirley Rhodes

Comments

Sign in or sign up to comment and upvote.

No comments yet.