home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 January
/
usenetsourcesnewsgroupsinfomagicjanuary1994.iso
/
sources
/
unix
/
volume12
/
cnews
/
part01
/
lib.proto
/
control
/
rmgroup.man
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1987-10-19
|
321 b
|
18 lines
#! /bin/sh
# rmgroup group - snuff group
F=/tmp/nc$$
admin=usenet
cat >$F
SENDER="`grep '^Sender:' $F | sed 's/^[^:]*: *//'`"
case "$SENDER" in
"")
SENDER="`grep '^From:' $F | sed 's/^[^:]*: *//'`"
;;
esac
# tell the local usenet administrator to do it by hand
echo "rmgroup $1 says $SENDER" | mail $admin
rm -f $F*