Manually add a local dictionary 01 #! /Bin/sh02 03 # spelldict. sh -- use the 'aspell 'feature and some filters for 04 # allow command line spelling to check the given input file 05 06 # inevitably, you will find that some words are incorrect, but you think 07 # they are correct. Simply save them in a file, one line at 08 #, and make sure the variable 'okayword' points to the file. 09 10 okaywords = "$ HOME/okaywords" 11 tempout = "/tmp/spell. tmp. $"12 spell =" aspell "# modify 13 14 traps as needed"/bin/rm-f $ tempout "EXIT15 16 if [-z" $1 "]; then17 echo "Usage: spell file | URL"> & 218 exit 119 elif [! -F $ okaywords]; then20 echo "No personal dictionary found. create one and return this command. & amp; 221 echo & quot; Your dictionary file: $ okaywords "> & 222 exit 123 fi24 25 for filename26 do27 $ spell-a <$ filename | \ 28 grep-v '@(#) '| sed "s/\' // g" | \ 29 awk '{if (length ($0)> 15 & length ($2)> 2) print $2} '| \ 30 grep-vif $ okaywords | \ 31 grep' [[: lower:] '| grep-v' [[: digit:] '| sort-u | \ 32 se D's/^ // '> $ tempout33 34 if [-s $ tempout]; then35 sed's/^/$ {filename }: /'$ tempout36 fi37 done38 39 exit 0 run the Script: This script requires one or more file names to run on the command line: 01 first, an empty personal dictionary, the txt content is excerpted from Alice's Travel Notes: 02 $ spelldict Syntax: herrself04ragged.txt: teacups05ragged.txt: Syntax: clamour07 08. Two words are misspelled. Therefore, you must use the echo command to add them to the okay: 09 10 $ echo "Gryphon" >> ~ /. Okaywords11 $ echo "teacups" >> ~ /. Okaywords12 13 check results after extending the dictionary file: 14 15 $ spelldict ragged.txt16ragged.txt: herrself17ragged.txt: clamor