Hi!
I have the following test code fragment:
Code:
#! /bin/sh
A1='ZZZ'
B='A'
N='1'
if [ "${$B$N}" == 'ZZZ' ]; then echo 'OK'; fi
When I try to run it 'sh' reports the following message^
Code:
test.sh: ${$B...}: Bad substitution
You might understand what I mean with that test code so could you recommend how to achieve the required effect?