[NTLUG:Discuss] sh coding problem
merlin
merlin at merlinslair.org
Fri Mar 23 15:47:37 CST 2001
On Fri, 23 Mar 2001, Fred James wrote:
> This is Bourne shell scripting.
>
> Given similar environment variables such as
> MOM_CHAIR
> POP_CHAIR
> KID_CHAIR
> I want to build the variable name on the fly and retrieve the value to
> base a decision on in my script.
> Hints?
>
>
> --
> Consider Fractals
> a large, calm, black cat
> who seems often to be my spiritual leader.
Case statement? I'm not sure if bsh has an eval type function. But, you
could just case/esac it.
--
Merlin
Without question, the greatest invention in the history of mankind is
beer. Oh, I grant you that the wheel was also a fine invention, but
the wheel does not go nearly as well with pizza.
--Dave Barry
More information about the Discuss
mailing list