echo “enter string”
read s
echo “Length of String:” ${#s}

r=$(echo “$s”|rev )

if [ “$s” == “$r” ]
then
echo “The String is Palindrome”
else
echo ” The String is not Palindrome”
fi

vowel_count=$(echo “$s” | grep -o “[aeiou]” | wc -l)
echo “Total number of vowels: $vowel_count”


1 Comment

Leave a Reply to Unix shell script from basic to advance – AppXwinD Technology Cancel reply

Your email address will not be published. Required fields are marked *