How to iterate over the characters of a string in a POSIX shell script?
19:16 26 Jun 2018

A POSIX compliant shell shall provide mechanisms like this to iterate over collections of strings:

for x in $(seq 1 5); do
    echo $x
done

But, how do I iterate over each character of a word?

shell sh posix dash-shell