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

android - questions about switching from C2DM to GCM -

c++ - Qt setGeometry: Unable to set geometry -

batch file - How to extract all multi-volume RAR archives from subfolders of a folder? -