Generate first letter capitalized words in wordlist text files

Lang: bash
# get all lower case letters
egrep '^[[:lower:]]+$' /usr/share/dict/words >/tmp/t.txt

# upper case the first letter
awk '{for(i=1;i<=NF;i++){ $i=toupper(substr($i,1,1)) substr($i,2) }}1' \
/tmp/t.txt >/tmp/t2.txt

# remove duplicate lines
grep -vxF -f /usr/share/dict/words /tmp/t2.txt >/tmp/t.txt

# one line with pipes
# Generate first letter capitalized words from default dictionary wordlist.
egrep '^[[:lower:]]+$' /usr/share/dict/words | \
awk '{for(i=1;i<=NF;i++){ $i=toupper(substr($i,1,1)) substr($i,2) }}1' - | \
grep -vxF -f /usr/share/dict/words - >/tmp/t.txt

Create tables

Lang: bash
column -t -s '|' -o '|'