Skip to content

Instantly share code, notes, and snippets.

@matthewpizza
Last active August 29, 2015 14:19
Show Gist options
  • Select an option

  • Save matthewpizza/6838e76a6e9ea427510c to your computer and use it in GitHub Desktop.

Select an option

Save matthewpizza/6838e76a6e9ea427510c to your computer and use it in GitHub Desktop.
n vwls.
#!/bin/bash
vowels=( A a E e I i O o U u Y y )
input=$1
for vowel in "${vowels[@]}"
do
input="${input//$vowel/}"
done
echo $input
@matthewpizza
Copy link
Author

Usage

bash vwls.sh "A string with some ugly vowels to remove."

# => strng wth sm gl vwls t rmv.

@matthewpizza
Copy link
Author

mv vwls.sh /usr/local/bin/vwls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment