in reply to Print next N lines after a pattern is matched.

Your question is unclear. What if the next diff is after N+2 lines? I think your question is one of: But it's unclear to me which of the two you want.
  • Comment on Re: Print next N lines after a pattern is matched.