How to have a dynamic variable name in bash? Feb 12, 2020 Code snippet below: myvar=something varname=myvar echo ${!varname}