Created
August 9, 2017 18:53
-
-
Save mattdm/25481d20a362f11c210f8d44f44df1b7 to your computer and use it in GitHub Desktop.
sp — a really simple script for spell-checking individual words from the command line
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 | |
TMPFILE=$( mktemp ) | |
trap "rm -rf $TMPFILE" EXIT | |
echo "$*" > $TMPFILE | |
aspell check --dont-ignore-case $TMPFILE | |
cat $TMPFILE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment