Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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

by Kenosis (Priest)
on Nov 25, 2012 at 23:48 UTC ( #1005536=note: print w/ replies, xml ) Need Help??


in reply to Re^4: 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?

Unless I'm mistaken, the Solaris grep doesn't support -B -A or -C and there's no native grep on Windows.


Comment on Re^5: How to print the lines immediately above and below a matching line?
Select or Download Code
Re^6: How to print the lines immediately above and below a matching line?
by Anonymous Monk on Nov 26, 2012 at 09:40 UTC

    Unless I'm mistaken, the Solaris grep doesn't support -B -A or -C and there's no native grep on Windows.

    I don't see how that is relevant, gnu grep supports it and is available for every platform, including solaris and windows

    Also, ack is egrep

      I don't see how that is relevant, gnu grep supports it and is available for every platform, including solaris and windows

      Also, ack is egrep

      This topic is Bio90's very first request for assistance at PerlMonks. Wouldn't it have been more helpful to have just directly offered grep as a better solution?

        This topic is Bio90's very first request for assistance at PerlMonks. Wouldn't it have been more helpful to have just directly offered grep as a better solution?

        Why?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (14)
As of 2014-08-29 19:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (287 votes), past polls