Skip to content

Instantly share code, notes, and snippets.

@mattdm
Created August 9, 2017 18:53
Show Gist options
  • Save mattdm/25481d20a362f11c210f8d44f44df1b7 to your computer and use it in GitHub Desktop.
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
#!/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