Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-20 02:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found