Hi,
Is it possible to assign one variable to other.
eg.
v1="table1"
v2="20000"
I want table1 to assign 20000
table1=20000
Is there any way?
Thanks
Hi,
Is it possible to assign one variable to other.
eg.
v1="table1"
v2="20000"
I want table1 to assign 20000
table1=20000
Is there any way?
Thanks
Try,
$ eval $v1=$v2
$ echo $table1
20000
#!/bin/bash
#bash 4
declare -A array
v2="20000"
array["table"]=$v2