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

swift - What's the difference between [String] vs. [(String)]? -

android - questions about switching from C2DM to GCM -

rewrite asp to php based on asp query -