i=0word="hello"bar="" for ((i=1;i<=${#word};i++)) dofoo="Letter $i"$word | cut -c$i > bar echo $foo $barbar=""done
Standard input is empty
Letter 1 Letter 2 Letter 3 Letter 4 Letter 5
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!