shell scripting
Dear All,
Can anyone help me to access the value of var$i in shell scripting. With regards, Keerti |
In *NIX, shell variables or environment variables are prefixed with $ and followed by a name. So $i is a variable, as is $var. var$i is confusing to me in the context of your post.
If you want to see the value held by a variable, use "echo". E.g. :- Code:
echo $i |
perhaps you mean
Code:
eval value=\${var${i}} Code:
var=var${i} |
All times are GMT -5. The time now is 10:37 PM. |