From: utzoo!decvax!harpo!duke!ucf-cs!tim Newsgroups: net.sources Title: makenet converts sites to network format Article-I.D.: ucf-cs.622 Posted: Fri Jun 18 06:12:03 1982 Received: Tue Jun 22 01:07:07 1982 cp sites /tmp/site1 cp sites /tmp/site2 awk 'FILENAME == "/tmp/site1" {sites[$1]=NR; print $1} FILENAME == "/tmp/site2" {for(i=2; i <= NF; i++) \ printf "%s ",sites[$i];printf "0\n"} FILENAME == "nmail.h" && $1 == "#define" && $2 == "LOCAL" \ {printf "%d 0\n", sites[$3]}' \ /tmp/site1 /tmp/site2 nmail.h >$1 rm -f /tmp/site1 /tmp/site2 echo The network topology file is installed.