Sorry, here it is, relatively simple.
Is the bashshebang comment relevant even though the script successfully starts? - At the moment I have no bashshebang in my script but, didn't think this was an issue since it still runs.
../stocks/aaa-stockuniverse.txt
stock="soda"
eval $(curl -s "http://www.web.com/ig/api?stock=$stock"|sed 's/</\n</g' |sed '/data=/!d; s/ data=/=/g; s/\/>/; /g; s/</GF_/g' |tee ~/stocks/$stock.txt)
while read line
do
array+=("$line")
done < "/home5/username/stocks/aaa-stockuniverse.txt"
for ((i=0; i < ${#array[*]}; i++))
do
eval $(curl -s "http://www.web.com/ig/api?stock=${array}"|sed 's/</\n</g' |sed '/data=/!d; s/ data=/=/g; s/\/>/; /g; s/</GF_/g' |tee /home5/username/public_html/dailyquotes/${array}.txt)
echo "${array},$(date +%Y-%m-%d),$GF_open,$GF_high,$GF_low,$GF_last,$GF_volume"
sleep $[ ( $RANDOM % 10 ) + 1 ]s
done