in reply to Re^2: printing several lines around match
in thread printing several lines around match
If you are determined to reimplement existing functionality, just keep a queue with the last 5 lines, and print those and the next 5 lines when you find a match.
|
|---|