Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!cs.utexas.edu!uunet!amgraf!huver From: huver@amgraf.UUCP (Huver) Newsgroups: comp.mail.uucp Subject: RE: Pathalias question Message-ID: <312@amgraf.UUCP> Date: 4 Aug 89 02:01:12 GMT References: <1242@psuhcx.psu.edu> <1242@psuhcx.psu.edu> Organization: Amgraf Inc., Kansas City Lines: 29 In article <1242@psuhcx.psu.edu>, Bill Fenner says: > > I'd like to mark psuvax1 as dead in my maps, but then if any paths end up > with psuvax1 in them, I'd like to have the path start with psuvax1. > > ... Unfortunately, my path to psuvax1 is now: > > psuvax1 lll-winken!ames!think!bloom-beacon!garp!psuvax1!%s And in a reply article <1443@crdgw1.crd.ge.com>, Willam Davidsen writes: > > You'll kick yourself... just use sed to delete the leading crap. > sed 's/ [^ ]*!psuvax1/psuvax1/' mypaths >betterpaths > My makefile for paths does quite a bit of stuff like this, for just the > same reason. Both of you (prepare to kick yourselves) go read up pathalias manual pages and "discover" what does the notation mean (now go ahead and kick). The real answer is: (whatever-the-applicable-cost) e.g. (DIRECT) ----- huver ...!uunet!amgraf!huver