script question

From: Bob.Kelley@BRINKSINC.COM
Date: Tue Feb 10 2004 - 11:26:03 EST


I have two variables which are holding spots for mount points.

for i in 1 2
do
      export xx=DB$DB_COUNT=$i
      export REDO_MP_TO_$DB_COUNT=/apps/"$i"
done

Now I want to use them with commands and such

EG.
...
for i in 1 2
do
      cd $REDO_MP_TO_$DB_COUNT
done

but this fails to evaluate correctly in the second loop. How do I get the
$REDO_MP_TO_$DB_COUNT to be recognized as "/apps/1" and "/apps/2" for input
to the cd command?

Bobby Kelley Jr.
972-877-5341



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:17:34 EDT