Michael Amster wrote:
> Doh.  Typo.
> 
> ls | xargs sa-learn -spam
> 
> or:
> 
> find . -name "filepattern" | xargs sa-learn -spam

or:
find . -name "filepattern" -exec sa-learn -spam {} \;

Better yet, use the -f option to sa-learn:

echo "/path/to/spam/directory" >/etc/sa-learn-spam.conf
echo "/path/to/ham/directory" >/etc/sa-learn-ham.conf
sa-learn -spam -f /etc/sa-learn-spam.conf
sa-learn -ham -f /etc/sa-learn-ham.conf

or something to that effect. You could simply set up the *.conf file(s)
ahead of time and not do the echo. This way sa-learn processes all of the
files at once, which should be a bit faster.

> Sorry.  xargs is the Unix way to do this....
> 
> -MA
> 
> [EMAIL PROTECTED] wrote:
> 
-- 
-Eric 'shubes'

---------------------------------------------------------------------
     QmailToaster hosted by: VR Hosted <http://www.vr.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to