witty
asked on
VariableSubstitution in ksh
Hi!
I have:
$TEST1=abc
$TEST2=def
$TEST3=ghi
$INDEX=2
$VAR=TEST
I think you know what I want:
I want to use $VAR$INDEX and get the content of TEST2 "def"
can I do this, in one command as this is a 2way substitution??
thanks
witty
I have:
$TEST1=abc
$TEST2=def
$TEST3=ghi
$INDEX=2
$VAR=TEST
I think you know what I want:
I want to use $VAR$INDEX and get the content of TEST2 "def"
can I do this, in one command as this is a 2way substitution??
thanks
witty
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.