in reply to printing several lines around match

App::Ack and grep can do that out of the box, just pass -C3 as a command line option to either.

Replies are listed 'Best First'.
Re^2: printing several lines around match
by auto_w (Novice) on Jun 19, 2012 at 11:40 UTC
    i work on Cygwin - loading modules is a problem for me, with grep(grep -airC 5) i know how to do it but not inside of a script thou....

      auto_w:

      What problem do you have with loading modules in Cygwin? I use it all the time at work, and rarely have trouble installing modules.

      ...roboticus

      When your only tool is a hammer, all problems look like your thumb.