From: Bill Verzal (BVerzal@KOMATSUNA.COM)
Date: Tue Feb 10 2004 - 11:40:57 EST
${REDO_MP_TO}_${DB_COUNT}
--------------------------------------------------------
"If everything is coming your way, then you are in the wrong lane"
Bill Verzal
AIX Administrator, Komatsu America
(847) 970-3726 - direct
(847) 970-4184 - fax
Bob.Kelley@BRINKS
INC.COM
Sent by: IBM AIX To
Discussion List aix-l@Princeton.EDU
<aix-l@Princeton. cc
EDU>
Subject
script question
02/10/2004 10:26
AM
Please respond to
IBM AIX
Discussion List
<aix-l@Princeton.
EDU>
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