shell program check whether the given string start and ends with vowel letter or not.if user enter the apple as string then it is true that first and start letter is vowel letter.
Shell program to check whether the string start and ends with vowel or not
echo “Enter the string”
read str
case $str in
[aeiousAEIOU]*)echo “STring BEGIN with vowel”;;
*[aeiouAEIOU])echo “STring End with vowel”;;
*)echo “STRING NEITHER BEGIN NOR END WITH vowel”;;
Esac