Guest_imported
New member
- Jan 1, 1970
- 0
In my script, i have
#########
REPLICA_SERVER_1="sandbox1"
REPLICA_CNT=1
REPLICA_SERVER=REPLICA_SERVER_${REPLICA_CNT}
echo "replica:$REPLICA_SERVER"
###########
o/p should be: replica:sandbox1
But, i am getting o/p as replica: REPLICA_SERVER_1
Is there a way to get the required output.
Any help is appreciated.
Thanks
#########
REPLICA_SERVER_1="sandbox1"
REPLICA_CNT=1
REPLICA_SERVER=REPLICA_SERVER_${REPLICA_CNT}
echo "replica:$REPLICA_SERVER"
###########
o/p should be: replica:sandbox1
But, i am getting o/p as replica: REPLICA_SERVER_1
Is there a way to get the required output.
Any help is appreciated.
Thanks