Search Results

Search: Posts Made By: suhas12
11
1,627
Posted By suhas12
echo $SHELL /usr/bin/ksh and AIX. ...
echo $SHELL
/usr/bin/ksh

and AIX.

when I put set -x,
I see script coming out at while loop
11
1,627
Posted By suhas12
while [[ $i -lt ${#names1[@]} ]] do ...
while [[ $i -lt ${#names1[@]} ]]
do


and

while [[ $i -lt ${#names1[@]} ]];do

Both the above are not working. don't know what is wrong in the above.
11
1,627
Posted By suhas12
for((i=0; i<${#names[@]};...
for((i=0; i<${#names[@]}; i++));dogettingunexpected (

I tried for((i=0; i<${#INSTNAMES[@]}; i++))
do

still getting
unexpected (

tried for (i=0; i<${#INSTNAMES[@]}; i++)
do

...
11
1,627
Posted By suhas12
Thanks Walter. It worked fine. ...
Thanks Walter. It worked fine.

Scrutinizer,

I tried use the for loop you suggested but I am getting error:-
declare -a names1=(cdb1 cdb2 cdb3)
declare -a names2=(pdb1 pdb2 pdb3)
...
11
1,627
Posted By suhas12
In ksh
In Kshell
I have

names1="cdb1 cdb2 cdb3"
names2="pdb1 pdb2 pdb3"
for names in $names1
do
export $DB=$name
export $PDB=pdb1 ------------How to achieve this?
For cdb1, the...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 06:13 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy