tim (06/18/82)
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.