Skip to content

Instantly share code, notes, and snippets.

@shaunmolloy
Last active June 13, 2019 09:32
Show Gist options
  • Save shaunmolloy/e445222d841b367230304ca1ed9e4207 to your computer and use it in GitHub Desktop.
Save shaunmolloy/e445222d841b367230304ca1ed9e4207 to your computer and use it in GitHub Desktop.
spellcheck - use aspell to dump list of spell-checked words
#!/usr/bin/env bash
# spellcheck
# use aspell to dump list of spellchecked words
cat $1 | # stdin
aspell -a -l en | # spellcheck with aspell
cut -d ' ' -f 2 |
grep -v '*' | # clean up aspell output
awk NF | # remove blank lines
sort | # sort
uniq -iu # remove duplicates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment