Skip to content

bash dynamic (variable) variable names

Xu Gang edited this page Jan 8, 2021 · 1 revision
var1=hello
var2=var1
echo ${!var2}
# hello
Clone this wiki locally