While ...loop

view full story

http://www.unix.com – 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 having problem printing the value of my var SID_1, SID_2, SID_3 instead the output printed out is just SID_1 SID_2 SID_3 i need the value assign to SID_1..3 . (HowTos)