bill@ssbn.UUCP (Bill Kennedy) (08/25/87)
The newsetup script that I got with rn chokes because it can not handle as many groups as there are in the active file. This simple minded approach will just fill out an empty .newsrc. It's not elegant, it just works. I have sent it to several people and it's short so I figured someone else might find it handy. ------------------------------------------- cut --------------------------- # # Make a new .newsrc in the $HOME directory # RCFILE=$HOME/.newsrc TEMP=/tmp/active$$ if [ -s $RCFILE ] then echo "I will not overwrite your $RCFILE, you must remove it!" exit 0 fi echo "Creating $RCFILE to be used by news programs, please wait." cut -f1 -d" " /usr/lib/news/active > $TEMP if [ -s $TEMP ] then cat $TEMP | while read group do echo "$group:" >> $RCFILE done fi rm -f $TEMP cat /usr/lib/news/rn/newsnews ------------------------------------------------ cut --------------------- -- Bill Kennedy {cbosgd | ihnp4!petro | sun!texsun!rrm}!ssbn!bill