Command substitution in echo

a=1
b1=unix
echo $b`$a`

The above code is not working. Instead of printing the variable b1 using 'echo $b1', how to use variable 'a' to print 'b1'

eval "echo \$b$a"
1 Like