Here's a, hopefully quite close, translation.
var="Hello"
for (( i = 0; i < ${#var}; i++ ))
do
echo ${var:i:1}
done
Illustrates a few bash concepts.
${#var}gives the number of characters in variable${var}${var:x:y}gives a substring of characters of${var}starting at positionx, lengthy
martin clayton
2010-01-26 21:29:27