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.
In reply to Re: Grep - print matched line and next N lines
by Anonymous Monk
in thread Grep - print matched line and next N lines
by runrig
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |