Ok this must be a quick one to answer
borne shell script:
x=y
$x=7
error
y=7
, how do i use the content of a variable as a name for a new variable?
also how do i return parameters from a function
i.e.
_read()
{
prompt=$1
temp=""
valid=0
while [ "$temp" = "" ]
do
echo "$1 : \c"
read temp
done
}
### main
option=_read "please enter your choice"
#?
borne shell script:
x=y
$x=7
error
y=7
, how do i use the content of a variable as a name for a new variable?
also how do i return parameters from a function
i.e.
_read()
{
prompt=$1
temp=""
valid=0
while [ "$temp" = "" ]
do
echo "$1 : \c"
read temp
done
}
### main
option=_read "please enter your choice"
#?