Skip to content

Instantly share code, notes, and snippets.

@bluerogue251
Created December 14, 2017 22:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bluerogue251/ea4fbf621b4138acabc0e1289d1c869c to your computer and use it in GitHub Desktop.
Save bluerogue251/ea4fbf621b4138acabc0e1289d1c869c to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
echo "Total number of words:"
cat /usr/share/dict/american-english | wc -w
echo ""
# To fix this, you need to filter the dictionary words
echo "Number of words containing the string 'auto':"
cat /usr/share/dict/american-english | FILL_ME_IN | wc -w
echo ""
# For this next bug, you may have to research options for the `sort` command using `$ man sort`
echo "Alphabetically reverse-sorted list of words containing the string 'auto':"
cat /usr/share/dict/american-english | grep auto | sort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment