#/bin/bash

ROOT="/afs/hcoop.net/user/n/ne/nevetski/dnd/data/user"
CACHE="/afs/hcoop.net/user/n/ne/nevetski/dnd/data/cache/wikiconfig/user/name2id"

# remove all but trusted users (i.e., confirmed human beings)
for i in $ROOT/*; do 
     if grep -f $ROOT/.trusted $i; 
        then 
           echo $i is trusted; 
        else 
           echo $i is a spammer; 
           rm $i;
           echo "DELETED: $i";
     fi; 
done

# Get rid of lingering user references in the cache
rm $CACHE

Software/deleteSpammers (last edited 2010-05-22 19:36:41 by SteveKillen)