Last active
June 13, 2019 09:32
-
-
Save shaunmolloy/e445222d841b367230304ca1ed9e4207 to your computer and use it in GitHub Desktop.
spellcheck - use aspell to dump list of spell-checked words
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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