One way (probably not the most elegant)
set a flag variable to 0
my $flagv=0
foreach to read file
{
$flag=1 if (/^NC00/);
if ($flag)
        {
        store line
        increment counter
        if counter >5 $flag=0
}
-- 
Chris D. Garringer
LAN/WAN Supervisor
Toshiba International
713-466-0277 x3756
fax 713-896-5266
Red Hat Certified Engineer
Novell MCNE
Microsoft Certified System Engineer
Certified Solaris Administrator


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to