"russell-evans at qwest.net" <russell-evans at qwest.net>: > #/bin/sh should be #!/bin/sh and maybe not sh, since POSIX sh doesn't have arrays. > declare -a RESULT should be RESULTS > COL2[$x]=${RESULTS[$y]} > let x=$x+2 you're only assigning every other element of COL1 and COL2. COL1[0] has a value, COL1[1] is null, COL1[2] has a value, etc. --