Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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

by karlgoethebier (Abbot)
on Nov 27, 2012 at 18:34 UTC ( [id://1005894] : note . print w/replies, xml ) Need Help??


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?