Code:
#!/usr/bin/ksh
totalInstance=3
c=1
SID=SID
SID_1=BOYISH
SID_2=EAGALE
SID_3=PLUNE
while [ c -le $totalInstance ]
do
BDUMP_DIR="${SID}_${c}"
echo "$BDUMP_DIR"
c=`expr $c + 1`
echo "$c"
done
instead the output printed out is just
SID_1
SID_2
SID_3
i need the value assign to SID_1..3 .