in reply to Re^4: How to extract certain range of text and display it?
in thread How to extract certain range of text and write into another file?

For example, I need to extract the $ NAME: sandy until $$.TO and then join with the contents inside $NAME: patrick which is start from G1 until $$SRU.
Your sample data seems to indicate that the data for each name starts with "$ NAME" and ends with a line ".EON", which is the base of our suggestions until now. The quoted sentence seems to indicate something different. So you should clarify:
  • Comment on Re^5: How to extract certain range of text and display it?