Unix OS : Linux 2.6x
Shell type : Korn
I am stuck in weird problem .
In my shell script I am setting an environment variable using the following command :
EMP="KUMARJIT"; export EMP
In the following sections of the script , what I did is :
I created and initialized a new shell variable "type" using the following command:
type="EMP"
As because the VALUE OF A SHELL VARIABLE(type) IS THE NAME OF ONE THE ENVIRONMENT VARIABLE(EMP) ,
how can I get the value of variable "EMP" using the shell variable "type" ?