in reply to Grep - print matched line and next N lines
qux foo bar 1 bar 2 foo bar 1 bar 2 bar 3 qux
Then I'd want all the lines printed from the first "foo" to the last "bar", yours only prints up to the second "foo" line.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Grep - print matched line and next N lines
by runrig (Abbot) on Aug 13, 2002 at 00:08 UTC | |
by Anonymous Monk on Aug 13, 2002 at 06:44 UTC | |
by runrig (Abbot) on Aug 13, 2002 at 17:15 UTC |