2
rated 0 times
[
2]
[
0]
/ answers: 1 / hits: 1226
/ 2 Years ago, fri, december 3, 2021, 2:50:09
I simulated the situation where the value of variable bar
is $foo
. foo
is a variable too, which has the value hello
.
$ foo=hello
$ bar=$(echo "$foo")
$ echo $bar
$foo
How I can get to hello
, given foo="hello"
and bar="$foo"
?
I tried:
$ echo $(echo $bar)
But the output still is:
$foo
More From » command-line