On Tuesday 24 August 2004 6:32 pm, Jack L. Stone wrote:

> Here's the script -- I grabbed it from this list I think and don't know who
> to give credit for it:
>
>   #!/bin/sh
>   DEFFILES="/usr/local/etc/mail/spamassassin/*.cf"
>   GREPSTR="describe"
>
>   cat $DEFFILES | egrep ^$GREPSTR  \
>
>      | awk '{ print "echo `fgrep " $2 " /path/to/spamboxes.* \
>      | wc -l` " $2 } ' | sort | uniq | tail +2 | sh | sort -rn
>
>   #EOF

I have a little problem with this script, and I am not sure what to do, as I 
am a shell script wannabee.

$ ./spam-check
./spam-check: line 2: �: command not found
./spam-check: line 3: �: command not found
./spam-check: line 5: �: command not found
grep: ��: No such file or directory
grep: �: No such file or directory
grep: �: No such file or directory
./spam-check: line 9: �: command not found

What's up. I am running Mandrake 10.0, I am trying to run it under the bash 
shell. /path/to/spamboxes is replaced to the spambox I have for KMail: 
"~/.Mail/SpamPile/cur/"

Rob

-- 

Mountlake Terrace, WA
USA

Reply via email to