[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
variable variable name
From: |
Matt P. |
Subject: |
variable variable name |
Date: |
Thu, 07 Feb 2002 19:16:21 -0500 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 |
hello,
need some help in figuring out the following:
i have a variable, eg NAME, and based on the value of that variable i
would like to create other variables. For example, if NAME=chet, I would
like to create eg chet.meal=pizza.
so i have something like that
NAME=chet
MEAL=pizza
eval $NAME.meal=$MEAL
but bash doesn't like my pizza... can you please indicate to me the
correct recipee for this one, or pointers to it.
Thanks,
Matt
- variable variable name,
Matt P. <=