in reply to Re: Grep - print matched line and next N lines
in thread Grep - print matched line and next N lines
I did consider it, and decided I didn't want/need that behavior, though it would make for another nifty command line option if that is the behavior you want. Feel free to patch...
Update: Ok, its updated, though I suppose now you'll want an option to print lines from the next file if the match is at the end of the current file... :-) (though that would be easy, I think replacing the eof line with this would do it):
last if $opt_f ? eof() : eof;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Grep - print matched line and next N lines
by Anonymous Monk on Aug 13, 2002 at 06:44 UTC | |
by runrig (Abbot) on Aug 13, 2002 at 17:15 UTC |