werner@utastro.UUCP (Werner Uhrig) (10/29/88)
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