I pass the string as an argument to the shell script. and the shell script should tell me if the passed argument is a variable
something like that
if [ ! -z ${$1} ] ; then echo yes! $1 is a variable and its value is ${$1} fi
but that gives me the wrong err replacement ..
I definitely know that I missed something ... help me!
For example, use:
$ myscript.sh HOME yes! HOME is a variable and its value is /home/raj
source share