Link to home
Start Free TrialLog in
Avatar of witty
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
ASKER CERTIFIED SOLUTION
Avatar of chris_calabrese
chris_calabrese

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial