Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!topaz!nike!ucbcad!ucbvax!hplabs!turtlevax!ken From: ken@turtlevax.UUCP (Ken "Turk" Turkowski) Newsgroups: net.news.b,net.news.adm Subject: Re: rn and .newsrc Message-ID: <1206@turtlevax.UUCP> Date: Mon, 28-Jul-86 15:00:03 EDT Article-I.D.: turtleva.1206 Posted: Mon Jul 28 15:00:03 1986 Date-Received: Tue, 29-Jul-86 21:37:59 EDT References: <3694@ut-ngp.UUCP> Reply-To: ken@turtlevax.UUCP (Ken "Turk" Turkowski) Organization: CIMLINC, Inc. @ Menlo Park, CA Lines: 36 Keywords: rn .newsrc Xref: mnetor net.news.b:340 net.news.adm:614 In article <3694@ut-ngp.UUCP> merworth@ut-ngp.UUCP (Boyd Merworth) writes: >If I have a group marked in my .newsrc file to which I >do not subscribe, why does rn keep appending article numbers >to that entry if the article has been cross-posted to a group >to which I subscribe? Eventually, if readnews is invoked on >login, I get an error message, ".newsrc line too long". The >line is even too long for vi to handle! First, catch up on your news reading, then execute the following program to fix up your .newsrc. It will insert a dash between the first and last numbers, deleting all those in between. It even works if you have an options line. ----------------------------------------------------------------- # This is a shell archive. Remove anything before this line, then # unpack it by saving it in a file and typing "sh file". (Files # unpacked will be owned by you and have default permissions.) # # This archive contains: # newsrcfix echo x - newsrcfix cat > "newsrcfix" << '//E*O*F newsrcfix//' #!/bin/sh NRC=${NEWSRC-$HOME/.newsrc} sed -e 's/\([0-9][0-9]*\)[-,].*[-,]\([0-9][0-9]*\)/\1-\2/' $NRC > $NRC.new cp $NRC.new $NRC rm $NRC.new //E*O*F newsrcfix// exit 0 ----------------------------------------------------------------- -- Ken Turkowski @ CIMLINC, Menlo Park, CA UUCP: {amd,decwrl,hplabs,seismo}!turtlevax!ken ARPA: turtlevax!ken@DECWRL.DEC.COM