ihdm tpdoc h00: d00: d01: d02: |
awk -F: ' BEGIN {
print " td = new Array()"
}
$1!=ant { 
 printf "td[\""ant""r++"\"]=\"\"\n"
r=0 ;ant=$1}
{
 printf "td[\""$1""r++"\"]=\""
for (i=2;i<NF;i++) printf "%s|",trail($i)
print "\""
} END {
 printf "td[\""ant""r++"\"]=\"\"\n"
}
function trail(x) { while (substr(x,length(x))==" ") x=substr(x,1,length(x)-1); return(x)
 } ' > ../js/mtpdoc.js
