I have a variable that has a nested value.
x=hello
y=world
helloworld=monday
TEMP=$x$y
echo "${!TEMP}" # I get output "monday" which is required
This works in bash but not in plain sh. When I run same command using sh the last line gives "Bad Substitution".
How can I get same result using sh? For some reasons I cannot change shell from sh to bash, so I have to do this with sh.