I have table which looks like this (tab separated):
Ron Rob rock bammy
m f m f
florida Atlanta florida texas
This table is of order 5*512 and based on row 3 data, I want to extract the values in row1.
for example: I want to have names of all person living in florida and texas, in a table of 2 columns and n number of rows.
Florida Ron
Florida Rock
Texas BAmmy
and so on.
any suggestions for a bash or PERL liners…
Thank you in advance.
see the test below:
output
EDIT
output: