Print nth previous line after match

Please help me
print nth line after match

awk or sed one line command.

Is this a homework assignment? Homework and coursework questions can only be posted in the Homework & Coursework forum under special homework rules.

If you did post homework in this forum, please review the guidelines for posting homework and repost.

Otherwise, please:

  1. explain why you need to do this,
  2. show us what you have tried to solved this on your own,
  3. show us sample input and corresponding desired output, and
  4. tell us what operating system and shell you're using.

================================================================================

  • Process Beginning - 2016-03-31-00.24.17
    10000 line logs

-Process Ending - 2016-03-31-00.25.17

I have get Process start and end time based on match found in between

Please answer these questions: