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

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

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