Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

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

by karlgoethebier (Curate)
on Nov 27, 2012 at 18:34 UTC ( #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?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1005894]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (15)
As of 2014-07-24 15:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (161 votes), past polls