> > RRexportflag=yes > XXexportflag=no > > for i in `cat companies` > do > > if [ $iexportflag = "yes" ] ; then > > ...do some exporting ... > > fi > done
> The problem I have is that the $iexportflag becomes RRexportflag and Not the > value (yes) which is what I want. you might want to try using "==" (equality check) instead of "="(assignment) _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
