in reply to How can I print part of a line between two different lines
What code have you already written and how does it fail to do what you want?