#!/usr/bin/awk -f # # $NetBSD: mkoldconf.awk,v 1.4 1995/12/16 15:05:03 ragge Exp $ # /tmscd/{ tmsplats[ntms]=$2; tmsaddr[ntms]=$5; ntms++; } /tscd/{ tsplats[nts]=$2; tsaddr[nts]=$5; nts++; } /racd/{ raplats[nra]=$2; raaddr[nra]=$5; nra++; } { if(savenext==1){ l=sprintf("%d",$2) udanummer[l-1]=nuda-1 savenext=0; } } { if(tmssavenext==1){ l=sprintf("%d",$2) tmsnummer[l-1]=ntmscp-1 tmssavenext=0; } if(tssavenext==1){ l=sprintf("%d",$2) tsnummer[l-1]=nts-1 tssavenext=0; } } /tmscpcd/{ tmscpplats[ntmscp]=$2; tmscpaddr[ntmscp]=$5; ntmscp++; tmssavenext=1; } /udacd/{ udaplats[nuda]=$2; udaddr[nuda]=$5; nuda++; savenext=1; } /};/{ k=0; m=0; } { if (k==1){ for(i=1;i