Last updated 4 years ago
Was this helpful?
Return the number (count) of vowels in the given string.
We will consider a, e, i, o, and u as vowels for this Kata.
echo $(s=${1,,};r=${s//[^aeiou]/};echo ${#r})