Created
April 27, 2016 14:08
-
-
Save Zolomon/a0d13f4ca7d9b8fc8e36d4a5daad7130 to your computer and use it in GitHub Desktop.
Find english and swedish typos in a text file.
This file contains hidden or 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/bash | |
echo "Spellchecking $1" | |
tr -s '[[:punct:]][:space:]]' '\n' < $1 | sort | uniq | \ | |
aspell pipe --encoding utf-8 --lang=sv | sort | uniq | cut -d ' ' -f 2 | sort | uniq | \ | |
aspell pipe --encoding utf-8 --lang=en | sort | uniq | cut -d ' ' -f 2 | |
echo "Spellchecked $1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment