The shell uses the value of the variable to get the value of a new variable name
#!/bin/bash
name='xiaoke'
xiaoketest='123'
echo `eval echo '$'"${name}test"`
result:
will output 123
#!/bin/bash
name='xiaoke'
xiaoketest='123'
echo `eval echo '$'"${name}test"`
will output 123