On 22:37 29 Apr 2002, Michael Fratoni <[EMAIL PROTECTED]> wrote: | On Monday 29 April 2002 09:39 pm, Cameron Simpson wrote: | > |On 17:58 29 Apr 2002, christopher j bottaro <[EMAIL PROTECTED]> wrote: | > | 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 | > | > case " $EXCLUDE_LIST " in | > *" $DIR "*) echo in list ;; | > esac | | I believe he is trying to list everything not included in $EXCLUDE_LIST | In which case he wants something like:
I was just supplying the test. Using it or its inverse for one thing or another is up to him. -- Cameron Simpson, DoD#743 [EMAIL PROTECTED] http://www.zip.com.au/~cs/ Forty years from now nursing homes will be filled with demented hackers, studying their blank laptop screens nicely placed on knitted quilts to keep their knees warm. - K. Mitchum _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list