The code posted from unSpawn works for me, but depending on the bash version the $[ ... ] construct may or may not work. You can try to substitute with the $(( ... )) construct, as in
Code:
#!/bin/bash
metin="aaaaaa bbbbbbb ccccccc dddddd"; bar=(${metin})
for i in `seq 0 $((${#bar[@]}-1))`;
do
echo ${bar[$i]}
done
As for your last example (indeed I don't see any reason to introduce arrays), it should be
Code:
#!/bin/bash
metin="aaaaaa bbbbbbb ccccccc dddddd"
for i in $(echo $metin)
do
echo $i
done