Below is the part of the code that is throwing error.for (( p=0; p<${var2}; p++ ))doif [[ ${array2[$p]} == *xyz* ]]then    awk -F  '{ array3[p]=123 };1' ${array1[$i]}else    awk -F  '{ array3[p]=456 };1' ${array1[$i]}fiWhen i run the script in debug mode, i could see that the value of p is not being considered.+ awk '-F ' '{ array3[p]=456 };1' oct.csvI am running the script as ./script.sh and /bin/ksh is the shell used. Please help.
Using variable to retrieve array element inside awk statement
awk;array