Xref: utzoo comp.mail.misc:2985 comp.mail.uucp:4003 Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!rex!ames!saturn!dglo From: dglo@saturn.ADS.COM (Dave Glowacki) Newsgroups: comp.mail.misc,comp.mail.uucp Subject: Re: Updating UUCP maps? Message-ID: <10998@saturn.ADS.COM> Date: 23 Feb 90 17:39:28 GMT References: <52@dynasys.UUCP> <2274@litchi.bbn.com> Organization: Advanced Decision Systems, Mt. View, CA (415) 960-7300 Lines: 25 To store the maps in compressed form (thus freeing up LOTS of disk space), set COMPRESS=1 in uuhosts, then change the final lines in Rich's script to: ## The path files. First read local updates like u.BBN, then read the ## domain files, then the raw map files. P1="u.[A-Z]*" P2="d.*" P3="u.[a-z]*" ## Print file name then file, so pathalias can report any errors correctly (for i in ${P1} ${P2} ${P3}; do ## Handle both compressed and uncompressed (in case any maps ## were too small to be compressed efficiently) case $i in *.Z) echo "file {$i}" zcat $i ;; *) echo "file {$i}" cat $i ;; esac echo "private {}" done) | pathalias -i -c ${DEBUG} ${DEAD} ${AVOID} |\ awk '{ printf "%s\t%s\t%s\n", $2, $1, $3 }' >COSTS awk '{ printf "%s\t%s\n", $1, $3 }' PATHS sort +1.0 -n -o COSTS COSTS sort -f -o PATHS PATHS