while( <> ) { do { print; last } if /^MYTAG2/; } print while <>; [download]
In reply to Fish by Fletch in thread How do I remove lines from a file... by ginju75