open(FH,"file"); while( ) { if (/red line/) { process(); } }