bash - How to get environment value from variable? -


if have var value home, path or my_var etc, how can $home, $path var?

some thing below:

var="home" echo ${$var} # not work 

as simple that:

var="home" echo ${!var} 

more on indirect references


Comments

Popular posts from this blog

php - Zend Framework / Skeleton-Application / Composer install issue -

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -