1

How to get value from array and set those values as a variable

view story
linux-howto

http://www.unix.com – I am new to ksh scripting, specially array. How do i get values from an array and set the value as variable and pass those variables to the different functions?? someone taught me how to get input from a file with have columns i need to read, but now i doesnt know how to set those value to be a variable please help:( Code: while read line; do   read -A array <<<$line   n=${#array[@]}   echo "${array[0]} is my function"   for ((i=1;i<$n;i++)); do     print "${array[$i]}"    done   done < file (HowTos)