home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Fish 1
/
GoldFishApril1994_CD2.img
/
d4xx
/
d473
/
cnewssrc
/
cnews_src.lzh
/
relay
/
amiga
/
delgroup.e
< prev
next >
Wrap
AmigaDOS Script File
|
1991-01-04
|
735b
|
32 lines
.key GROUP/M
.bra [
.ket ]
; delgroup - delete a newsgroup, locally only
PATH=$NEWSCTL/bin:$NEWSBIN/maint:$NEWSBIN:$NEWSPATH ; export PATH
echo "Usage: $0 groupname"
grep -x "[GROUP]" NewsCtl:active
if val $RC ne 0
echo "[GROUP] does not exist!"
quit 10
endif
Lab Again
if Exists T:Cnews.lock
wait 45
SkipBack again
endif
echo >T:Cnews.lock "delgroup"
rename NewsCtl:active NewsCtl:active.old
fgrep >NewsCtl:active -v "[GROUP] " NewsCtl:active.old
delete T:Cnews.lock
; These next lines are not essential, so we leave them out...
; awk "\$1 != \"$1\"" active.times >active.times.t
; mv active.times active.times.o && mv active.times.t active.times
echo "You may wish to delete the NewsArts:[GROUP] directory at some point."