Skip to content

Instantly share code, notes, and snippets.

@skratchdot
Last active February 26, 2022 23:42
Show Gist options
  • Save skratchdot/7dc158007665e5deeaa3d1ed71c3c67e to your computer and use it in GitHub Desktop.
Save skratchdot/7dc158007665e5deeaa3d1ed71c3c67e to your computer and use it in GitHub Desktop.
fun with words and bash

fun with words and bash

number of words 8 characters or less

cat /usr/share/dict/words | awk 'length <= 8' | wc -l

display a random 5 character word

cat /usr/share/dict/words | awk 'length == 5' | shuf -n 1

list words ending in "ing"

grep -e 'ing$' /usr/share/dict/words
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment