thanks to both of yall for the reply, but it didn't work. i copied/pasted into a file, changed the EXCLUDE_LIST to something meaningful on my system, but it doesn't work, it just prints out all the dirs in the dir that i'm in.
i got another bash question though. i wanna execute the following sequence of commands (what is this called, so i can search for it on the internet?): ./configure --prefix=$1 && make && make install but i want to exit if any of them fail. i figured the following would work but it doesn't: if [ ! ./configure --prefix=$1 && make && make install ] ; then echo "an error occured" exit #i don't know the command to exit a bash script fi thanks for the help again, christopher On Monday 29 April 2002 09:37 pm, Michael Fratoni 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: > > EXCLUDE_LIST="dir1/ dir2/ dir3/" # You'll need the trailing / > for DIR in `ls -d */` ; do > case " $EXCLUDE_LIST " in > *" $DIR "*) continue ;; > esac > echo $DIR > done _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list