Hi,
I have the following code which is giving error mentioned below. Please can you support on this. Also suggest how can we access all the items against single vasservicename in circlename array,i.e, vasservicename say MTSTV will be available to all circles which are mentioned in the array circlename
cdrfilename ()
{
local out=SS_$1_CDR_$2.txt
echo $out
}
declare -a circlename=(KRL GUJ UPW CHN DEL ROWB KOL RAJ KTK)
declare -a vasservicename=(MTSTV CRBT )
runtime=`date +%Y%m%d%H%M%S`
for (( counter=0; counter <${#vasservicename[@]};counter++ ))
do
for (( count=0; count <${#circlename[@]};count++ ))
do
cdrfile[$counter][$count]=$(cdrfilename "${circlename[count]}_${vasservicename[counter]}" $runtime)
done
done
Error:
CDRFILE[7][7]=SS_RAJ_MMSC_CDR_20140807125243.txt: command not found
./vastest.sh: line 1199: CDRFILE[7][8]=SS_KTK_MMSC_CDR_20140807125243.txt: command not found