THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
No Format |
---|
/bin/bash find /path/to/spam -type f | while read -r f; do RESULT=$($HOME/dspam/bin/dspam --user $LOGNAME --classify < "$f") # Tune confidence >= 0.6 check if needed if [[ "$RESULT" =~ (result=\"Innocent\".*confidence=(1|0\.[6-9].)) ]]; then echo "$f ${BASH_REMATCH[1]}" fi done find /path/to/ham -type f | while read -r f; do RESULT=$($HOME/dspam/bin/dspam --user $LOGNAME --classify < "$f") # Tune confidence >= 0.6 check if needed if [[ "$RESULT" =~ (result=\"Spam\".*confidence=(1|0\.[6-9].)) ]]; then echo "$f ${BASH_REMATCH[1]}" fi done |
...