i've been reading about advanced bash scripting on some webpage, but i can't 
seem to find what i'm looking for.

is there an easy way to tell if a var is in a list (a list like in a for loop 
list)?  is there a keyword that does what continue does in c?

i wanna get this sudo (sp?) code working...

EXCLUDE_LIST = "dir1 dir2 dir3"
for DIR in `ls -d */` ; do
        if [ $DIR in $EXCLUDE_LIST ] ; then
                continue;
        fi
        echo $DIR
done

thanks for the help,
christopher




_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to