BEGIN { FS = "\t"; } function esc(s) { gsub(/&/, "&", s); gsub(//, ">", s); return s; } { tanks[i++] = $1; reason[$1] = $3; killer[$1] = $4; errchar[$1] = $5; lasterr[$1] = $6; kills[$4] += 1; getline < ($2 "/name"); name[$1] = $0; } END { print ""; print ""; for (me in name) { print ""; print ""; print ""; print ""; print ""; print ""; print ""; print ""; } print "
NameKillsCause of DeathKillerLast ErrorParse error @
" esc(name[me]) "" kills[me] "" reason[me] "" esc(name[killer[me]]) "" lasterr[me] "" errchar[me] "
"; }