Xref: utzoo news.admin:3257 news.config:863 Path: utzoo!linus!necntc!ima!cfisun!lakart!dg From: dg@lakart.UUCP (David Goodenough) Newsgroups: news.admin,news.config Subject: Re: Map updates in news.config Message-ID: <203@lakart.UUCP> Date: 13 Aug 88 18:00:42 GMT References: <6553@petro.UUCP> Followup-To: news.admin Distribution: na Organization: Lake - The systems people Lines: 28 Maybe this has been suggested, but if not I'm suggesting it (I'm also gonna start working on it, but don't hold your breaths). Rather than complain about the noise generated in news.config, USE IT. We have a shell script that sucks the data out of comp.mail.maps - well it ought to be possible to do the same for the "single" entries that hit news.config. Try something like the following: scan all new articles in news.config for lines of the form: #N\t.* When one is found keep copying to some delimiting line (i.e. blank or ----'s) This gives us the new entry. Now do a bm xxxx /usr/lib/uucp/uumap/[du].* | bm #N ^^^^^^^^^^^^^^^^^^^^^^^^^^ Or whereever you keep your maps where xxxx is the hostname from the first line of the above entry, and you have where it's supposed to go. Now if we do some creative work with cat -n, grep and head & tail it should be possible to clip the old entry out, and replace it with the new. Voila. Someone can probably do this with a shell script, but I'm going to try it with a C program. Let battle commence -- dg@lakart.UUCP - David Goodenough +---+ | +-+-+ ....... !harvard!cca!lakart!dg +-+-+ | +---+