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:
Text File  |  1987-10-19  |  321 b   |  18 lines

  1. #! /bin/sh
  2. # rmgroup group - snuff group
  3. F=/tmp/nc$$
  4. admin=usenet
  5.  
  6. cat >$F
  7. SENDER="`grep '^Sender:' $F | sed 's/^[^:]*: *//'`"
  8. case "$SENDER" in
  9. "")
  10.     SENDER="`grep '^From:' $F | sed 's/^[^:]*: *//'`"
  11.     ;;
  12. esac
  13.  
  14. # tell the local usenet administrator to do it by hand
  15. echo "rmgroup $1 says $SENDER" | mail $admin
  16.  
  17. rm -f $F*
  18.