in reply to Re^2: Print 5 lines before and after pattern match from a list
in thread Print 5 lines before and after pattern match from a list

The OPs code already implements a solution by cutting of at the beginning and the end of the array, so we can safely imply his desired spec!

  • Comment on Re^3: Print 5 lines before and after pattern match from a list