> >   #!/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
> >
>
> $ ./spam-check
> ./spam-check: line 2: : command not found
> ./spam-check: line 3: : command not found
> ./spam-check: line 5: : command not found

Assuming line 1 really is the #! line, it would be complaining about defines
failing as commands.  This seem unlikely, so I'd guess one of two things: a)
you need to use some other shell, and b) you ended up with windows \r\n line
endings rather than \n line endings, and the \r's are being treated as
commands.

See if maybe you have \r characters in there.  They will do nasty stuff like
that.

        Loren

Reply via email to