ihdm wrkor h11"^" h02"^" h00"^" h01 | awk -F"^" ' BEGIN { printf "var otinfo=new Array()\n" }
function trail(txt) { while (substr(txt,length(txt),1)==" ") txt=substr(txt,1,length(txt)-1); return (txt) }
$1=="99" { next } 
ant==$2$3 {next}
{ ant=$2$3 }
{ ot[$2]=ot[$2]$3" - "$4"\\r" }
END {
for(i in ot)
printf "otinfo[\"%s\"]=\"%s\"\n",i,ot[i]
}
' - >../js/otinfo.js
