in reply to
print line 5 lines previous to comaprison line!
Hi,
this code seems to do the trick quite effectively:
while (<>) { $a[$i++%6] = $_; print $a[$i%6] if /match/; }
Just change the if condition to something reasonable.
-mk
Comment on
Re: print line 5 lines previous to comaprison line!
Download
Code
In Section
Seekers of Perl Wisdom