http://qs321.pair.com?node_id=981237


in reply to Re: Getting lines in a file between two patterns
in thread Getting lines in a file between two patterns

Thanks Marshall. I agree this is actually a much better solution and suits my need perfectly.