Last active
November 19, 2021 20:18
-
-
Save ttscoff/3cb637dc4041d3525c7361b31f0124e9 to your computer and use it in GitHub Desktop.
Spell check all markdown files in current git repo
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
#!/bin/bash | |
# Check spelling of all Markdown files in current git repo using aspell | |
for file in $(git ls-files|grep -v -E '(/|^)_'|grep -iE '\.(md|markdown)$'); do | |
aspell -M --lang=en --dont-backup --home-dir=$HOME --personal=$HOME/aspell.txt check "$file" | |
done |
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
function spellcheck -d 'Check all Markdown files in git repo (recursive)' | |
for file in (git ls-files|grep -v -E '(/|^)_'|grep -iE '\.(md|markdown)$') | |
aspell -M --lang=en --dont-backup --home-dir=$HOME --personal=$HOME/aspell.txt check "$file" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment