Ya I got your point but can we do it other way round also like-
For each record in file 2
Proceed extractions in file 1 relative to this record
If we can match first column of FILE2 as pattern in FILE1 header line and when it is found we proceed to extract the subtring in the lines following the header line till the next '>' appears by using values of column 2 and 3 of FILE2.
Just want to know your opinion on this logic as I am in learning phase. I'll try to work this out on my own if you think it will not be unnecessarily complicated.
Just want to develop my logics
Give your suggestions and hints to elaborate it if you find it ok.
Thanks Jean
-smriti