Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!cs.utexas.edu!utastro!werner From: werner@utastro.UUCP (Werner Uhrig) Newsgroups: news.misc Subject: Re: Subscribing/unsubscribing newsgroups Summary: here is a script (SS and US) to un/subscribe Keywords: Help, subscribe, newsgroups Message-ID: <3317@utastro.UUCP> Date: 28 Oct 88 20:20:43 GMT References: <2176@hou2d.UUCP> <240@sirius.UUCP> Organization: U. Texas, Astronomy, Austin, TX Lines: 24 I put it in a directory in my path (such as ~/bin), name it SS, link an alias to it named US, and now have available the commands: US talk.nerds to unsubscribe and SS news.announce to subscribe ------------cut------------here----------------cut-----------here-------- case `basename "$0"` in SS) C=":";; *) C="!";; esac SEDCMD=`echo $* | sed 's#[^ ][^ ]*#-e "/^&[:!]/s/[:!]/$C/w /dev/tty"#g'` TMP=/tmp/rc$$ trap "rm $TMP" 2 eval "sed $SEDCMD <${NEWSRC=$HOME/.newsrc} >$TMP" mv $TMP $NEWSRC -- --------------------> PREFERED-RETURN-ADDRESS-FOLLOWS <--------------------- (ARPA) werner@rascal.ics.utexas.edu (Internet: 128.83.144.1) (INTERNET) werner%rascal.ics.utexas.edu@cs.utexas.edu (UUCP) ..!utastro!werner or ..!uunet!rascal.ics.utexas.edu!werner