I have a korn shell code here on a while do statement which replace the string stored on an array removing double quotes characters on it but it doesn't work.
example record: appointmentDate[1] = "tree" which value should result to tree
#!/bin/ksh
# Remove " on string records
let recordCount=3
let recordNumber=1
while [ $recordNumber -le $recordCount ]
do
echo "${appointmentDate[recordNumber]}"
appointmentDate[recordNumber] = $(echo ${appointmentDate[recordNumber]}|sed -e 's/\"//g')
echo "${appointmentDate[recordNumber]}"
let recordNumber=$recordNumber+1
done
any ideas on the correct syntax? need help.
