in reply to pattern matching

Are the blocks delimited in any way? You ask for "the line under that" in the first section, and "the block" in the second. Do you have an example file?

--

Brother Marvell