in reply to Removing multiple lines

Adjust -MIN=50 to suit:

perl -snle"print if 1+index$_,substr($last,0,$MIN),0;$last=$_" -- -MIN +=50 junk "SimpsonH","Homer","Simpson","NULL","648","0","218 555","Nuclear Contr +ol","Nuclear Operator","SimpsonM" "SimpsonB","Bart","Simpson","NULL","748","0","218 555","Springfield El +ementary","Student","SimpsonH"

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."