in reply to pattern and loop
Hi,
Sorry, can not get your question. Please share us the sample input and output file so that we can understand your requirement.