Please advice how to use the eval command in order to print the parameter value
for example
bash
a=1
b=2
c=3
for i in ` echo a b c `
> do
> echo "$i=` eval $i ` "
> done
bash: a: command not found
a=
bash: b: command not found
b=
bash: c: command not found
c=
why I don’t get the requested output (from for
loop command)
a=1
b=2
c=3