Path: utzoo!mnetor!uunet!husc6!bloom-beacon!gatech!ncar!ames!killer!mazda From: mazda@killer.UUCP (John Wilson) Newsgroups: comp.unix.questions Subject: .newsrc cleanup Message-ID: <3956@killer.UUCP> Date: 29 Apr 88 17:11:51 GMT Sender: 0000-Admin(0000) Organization: The Unix(R) Connection, Dallas, Texas Lines: 33 Keywords: another method Another method of cleaning up the .newsrc file after a long vnews or readnews session: AFTER the session, do a background vnews redirected to /dev/null. This will update the .newsrc file and (in my experience) do away with all of the commas, dashes and article.numbers between the first and last article numbers of a given group. ----------------- I put the following in an executable file called KNEWS readnews -p > /dev/null & ---------------- I also rearrange my .newsrc file so that all subscribed to groups are at the `top' of the file followed by all groups not subscribed to. awk '/options/ {print $0} /^*:/ {print $0} ' .newsrc >subscribe awk '/^*!/ {print $0}' .newsrc > unscribe cat unscribe subscribe >> (new).newsrc ---------- Finally I rearrange (using vi) some of the more important (to me) groups toward the `top' so that they will be read first with rn or readnews. This has worked for me at killer.UUCP (The Unix(*) Connection). -- -------------------------------------------------------------------------------- ...the greatest sensation of existence, | J.P.Wilson - ...!killer!mazda not to trust, but to know. a.r. | mazda@killer.UUCP --------------------------------------------------------------------------------