awk '{if ($12>=maxscore[$1]) { print; maxscore[$1] = $12 } }' out.m8