while [ ${i} -eq ${#jobname[@]} ]
do
set -A cmd${i}
cmd${i}=(
[date_conditions]=$(grep "date_conditions:" tt | cut -c 18-)
[days_of_week]=$(grep "days_of_week:" tt | cut -c 14-)
[exclude_calendar]=$(grep "exclude_calendar:" tt | cut -c 19-)
[start_times]=$(grep "start_times:" tt | cut -c 14-)
[max_run_alarm]=$(grep "max_run_alarm:" tt | cut -c 16-)
[alarm_if_fail]=$(grep "alarm_if_fail:" tt | cut -c 16-)
)
i=${i}+1
done
it is giving me syntax error for "cmd${i}=("
how to get that array thatt grows as the number of elements in the jobname array?