title: for loop: truncate string on the right hand side step by step
body: <pre><code>WholeWord="Foo bar sells drinks"
  for (( character=0; character&lt;${#WholeWord}; character++ )); do
      echo ${WholeWord:$character}
  done
  </code></pre>
  
  <p>Prints out:</p>
  
  <pre><code>Foo bar sells drinks
  oo bar sells drinks
  o bar sells drinks
  bar sells drinks
  bar sells drinks
  ar sells drinks
  r sells drinks
  sells drinks
  sells drinks
  ells drinks
  lls drinks
  ls drinks
  s drinks
  drinks
  drinks
  rinks
  inks
  nks
  ks
  s
  </code></pre>
  
  <p>Instead of trimming the first letter of every first letters, I would like to trim the last ones, creating the output like this:</p>
  
  <pre><code>Foo bar sells drinks
  Foo bar sells drink
  Foo bar sells drin
  Foo bar sells dri
  etc.
  </code></pre>