Skip to content

Instantly share code, notes, and snippets.

@gsharp
Last active August 29, 2015 14:08
Show Gist options
  • Save gsharp/eae8e37b527c3c5b2e6f to your computer and use it in GitHub Desktop.
Save gsharp/eae8e37b527c3c5b2e6f to your computer and use it in GitHub Desktop.
ls vowel finder
ls | awk 'm = /[aeiou]/ { print $0 ": has a vowel"} !m { print $0 ": does not have a vowel" }'
@gsharp
Copy link
Author

gsharp commented Oct 29, 2014

sample output

PlugSettings: has a vowel
Public: has a vowel
README.md: does not have a vowel
Sites: has a vowel
apple: has a vowel
files.txt: has a vowel
git: has a vowel
hack.txt: has a vowel
notes: has a vowel
zzhh.txt: does not have a vowel

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