Reference variable by name
In bash, one can use the syntax ${!varname}
to expand the value of the variable with the name $varname
.
Source:
LESS='-p Parameter Expansion' man bash
Last updated
In bash, one can use the syntax ${!varname}
to expand the value of the variable with the name $varname
.
Source:
LESS='-p Parameter Expansion' man bash
Last updated