#!/bin/rc
rfork e
if(~ $#* 0)
pattern=.
if not
pattern=$1
cd /mnt/acme
for (i in [0-9]*){
if(test -d $i){
tag=`{cat $i/tag}
tagline = $"tag
file=$tag(1)
# must match our pattern if given, must be a clean window,
# and must not be an Errors window, mail, or win.
if(! ~ $file */ *+Errors* */-* */mail/* && ! ~ $tagline *Put*
&& echo $file | grep $pattern >/dev/null >[2]/dev/null)
echo del >$i/ctl
}
}
status=''
|