perl -ne 'BEGIN{ $s=q ~(.*)$/'"'"',$lines,$matches) 10.(.*)$/'"'"',$lines,$matches) (.*)$/'"'"',$lines,$matches)~};print unless /\Q$s\E/' input.txt