I am using an awk command inside a shell script that uses the split() function. I want to export that array to the shell script so I can use it. See script below:<br><br>#!/usr/bin/ksh<br><br>#set -x<br> <br>baseDir="/work/"<br>fName=${baseDir}$1<br>beginDate=`head -1 ${fName} ¦ cut -d " " -f4 ¦ sed -e 's./.:.g' -e 's/\[//' `<br>endDate=`tail -1 ${fName} ¦ cut -d " " -f4 ¦ sed -e 's./.:.g' -e 's/\[//' `<br> <br>echo $beginDate ¦ awk ' { split($1, var, ":" } { print $1 } { print var[2] } '<br>echo "var[2] = ${var[2]}"<br><br>When I try to display the contents of var[anything] it is blank. Any ideas?<br><br><br>-Eric