#!/bin/bash
echo -n "Enter a line of text:"
read string
numCount=$(echo $string | grep -o "[0-9]" | wc --lines)
vowCount=$(echo $string | grep -o -i "[aeiou]" | wc --lines)
consCount=$(echo $string | grep -o -i "[bcdfghklmnpqrstvwxyz]" | wc --lines)
echo "The given string has $vowCount vowels,$consCount consonants and $numCount numbers in it."


 OUTPUT
Enter a line of text:hai 123 how are you

The given string has 7 vowels,5 consonants and 3 numbers in it.