/moveto/ { x=$1; y=$2 } /lab/ { printf "%s%d %s\n", substr("ABCDEFGH",int(x/80),1), 1+int(y/80), $0 }