Write a script to delete all vowels from particular string

SOLUTION....

#!/bin/bash
# Script to delete all vowels from a given string

echo "Enter a string:"
read str

# Remove vowels using sed (both lowercase and uppercase)
result=$(echo "$str" | sed 's/[aeiouAEIOU]//g')

echo "String without vowels: $result"

OUTPUT

Leave a Reply

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

sign up!

We’ll send you the hottest deals straight to your inbox so you’re always in on the best-kept software secrets.