Aspell, your savior.

Spelling (Grades 1 - 2) (Step Ahead)

Spelling (Grades 1 - 2) (Step Ahead)

Misspelling is embarrassing

As I misspelled the word, embarrassing, for 5 times before I finally spelled correctly, misspelling occurs every 10 minutes or so when you are writing foreign language. And of course misspellings of simple words like shcool, dicsionary, ... are pretty embarrassing when it is revealed to educated people.

Here is the way you can reduce the misspelling by using the help of computers.
These commands list you up misspelled words in shellscript comments.

cat shell.sh | grep -P "^#" | sed s:#::g | aspell -a --lang=en

If you simply want to check if there is no misspelling in the text file, do the following

aspell --lang=en misspelled.txt

Install aspell

Ubuntu comes with aspell pre-installed while Mac doesn't.

Installing with brew

brew install aspell --lang=en

Installing with yum

yum install aspell --lang=en