in reply to need to extract top and bottom lines...
open (DIFFR, "/tmp/log.diff") or die "Could not open ;/tmp/log.diff\n" +; my $prev = <DIFFR>; while (my $curr = <DIFFR>) { print "$prev$curr" if $curr =~ /ERROR/; $prev = $curr; }
-Mark
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: need to extract top and bottom lines...
by holli (Abbot) on Dec 15, 2004 at 15:42 UTC | |
by johngg (Canon) on Dec 16, 2004 at 10:11 UTC | |
by johngg (Canon) on Dec 16, 2004 at 11:20 UTC |