KandZ – Tuts

We like to help…!

Linux CLI 47 🐧 aspell command

a - aspell command
aspell command is used to check text in various languages.
It can be used directly from the command line or in files
aspell [options] [input]
common option: -a → checks for a single word
-c fileName → checks a file
-list → check multiple user-entered words
--sug-mode=sugMode → specify different mode (fast, utlra, normal)
--mode=mode → choose one from url, email, html, tex, nroff and none

b - aspell examples
aspell -c test.txt → checks the spelling for test.txt
aspell -a → spellchecking for user-entered word - CTRL-D to exit
aspell list → spellchecking for user-entered list of words - CTRL-D to exit
echo "Helo to everone and godmorning" | aspell -a → spellchecking the sentence
echo "pHelo to everone and godmorning /p" | aspell -a --mode=html → use mode HTML
sudo apt/dnf/zypper install aspell-it → install different language to check, here italian
echo "Cia tuti, come stat" | aspell -a --lang=it → spellchecking in an italian sentence

Leave a Reply