[EMAIL PROTECTED] writes:
>
>  I'm using a find command to search through my system, but I don't want it
>  to search through AFS.  I don't have AFS installed so I'm a bit short on info
>  and would appreciate some help.

Try something like:

find / -name afs -prune -o -name cache -prune -o \
        '(' -name core ... <other names to look for> ')' <stuff to do>

Also, if you run /usr/lib/find/updatedb to update the fast find 
database, you can avoid /afs with

EXCLUDE="${EXCLUDE}|^/afs"

...

{
        if [ -n "$UFSPATHS" ] ; then
                find $UFSPATHS -name afs -prune -o -fstype nfs -prune -o -print
        fi
        if [ -n "$NFSPATHS" ] ; then
                su $NFSUSER -c "find $NFSPATHS -name afs -prune -o -print"
        fi
} |
 
Brian

Reply via email to