in reply to Re: How can I print three lines before pattern match?
in thread How can I print three lines before pattern match?
toprint "$file[$_]" for ($i-3 .. $i-1);
print $file[$_] for grep $_ >= 0, $i-3 .. $i-1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How can I print three lines before pattern match?
by bichonfrise74 (Vicar) on Aug 14, 2009 at 04:39 UTC |