Need to find a way to locate desired variables based on string combination
#!/bin/bash
DSPDSP="1234"
$A="DSP"
$B="DSP"
PORTLIST=$A$B
echo $PORTLIST
DSPDSP
I hope there is a smart function in bash that concerts a string into variable name
smart_echo $PORTLIST
1234