[EMAIL PROTECTED] wrote on 16 Nov 2001: > What I want to do is scroll thru the file and when it finds the line > that starts with "NC00" print that line and the next 5 lines.
Here's one way:
while (<FILE>) {
next unless /^NC00/;
print;
$_ = <FILE>, print for 1..5;
}
--
David Wall
[EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
