in reply to Re^3: How to print the lines immediately above and below a matching line?
in thread How to print the lines immediately above and below a matching line?

OK, but what if you need to process the result? Do you pipe it to some perl? What if no GNU grep on board? I'm interested in this question because i have to do some similar tasks in a monitoring context (using nagios). So qxing/piping matters. Thank you for your answer and best regards, Karl

«The Crux of the Biscuit is the Apostrophe»

  • Comment on Re^4: How to print the lines immediately above and below a matching line?