title: Calculate the number of vowels and consonants in a word
body: <p>I want to calculate the number of vowels and consonants in a word in a shell script, but I'm not sure how I can run through the word. Can anyone help me?
  What I so far have is:</p>
  
  <pre><code>#!/bin/bash
  
  echo 'Give a word'
  
  read word
  
  case $word
  in
          a*|e*|i*|o*|u*)
                  vowels=&amp;((klinker + 1 ))
          ;;
          *)
                  consonants=&amp;((medeklinker + 1 ))
          ;;
  esac
  
  echo $vowels
  echo $consonants
  </code></pre>