Jan 11, 2006 #1 simpson MIS Joined Oct 23, 2001 Messages 58 Location CA I would like to create and assign a value to a variable, the name of the variable will be derived from another variable. is this possible under ksh. Thanks
I would like to create and assign a value to a variable, the name of the variable will be derived from another variable. is this possible under ksh. Thanks
Jan 11, 2006 1 #2 hoinz MIS Joined Jan 29, 2004 Messages 944 Location DE What do you mean by "derived" ? Perhaps something like this: Code: $ X=test $ eval AA$X=1234567890 $ echo $AAtest 1234567890 $ eval echo \$AA$X 1234567890 $ echo \$AA$X $AAtest hope this helps Upvote 0 Downvote
What do you mean by "derived" ? Perhaps something like this: Code: $ X=test $ eval AA$X=1234567890 $ echo $AAtest 1234567890 $ eval echo \$AA$X 1234567890 $ echo \$AA$X $AAtest hope this helps