Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Use the ispell command of linux for the spell checker

2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article takes a look at using linux's ispell command for the spell checker. There is a certain reference value, friends in need can refer to, hope to help you.

The ispell preset uses the / usr/lib/ispell/english.hash dictionary file to check the text file. If you find words that are not in the dictionary in the checked files, ispell will suggest words to use, or ask you to add new words to your personal dictionary.

Syntax format: ispell [parameters]

Common parameters:

-a when the output of other programs is sent to ispell, you must use this parameter-A to read the "& Include File&" string, then check the contents of the file specified after the string-b produces a backup file named .bak-B check for hyphenation errors-C does not check for hyphenation errors-d specifies dictionary files-l reads strings from standard input devices Display misspelled words at the end-L specifies the number of lines displayed in the text-m automatically considers the change in the suffix-after M enters the ispell, the button of the display instruction at the bottom of the screen-n checks the file in noff or troff format-N after entering the ispell Keys that do not display instructions at the bottom of the screen-p specify personal dictionary file-P do not consider suffix changes-S do not sort suggested replacement words-t check files in TeX or LaTeX format-V non-ANSI standard characters are displayed in the form of "M-^" when w check, especially pick out words that contain specified characters-W do not check words of specified length-x do not produce backup files

Reference example

Check the testfile file:

[root@linuxcool ~] # ispell testfile

There is a spelling error in the file testfile. After modifying the file, you need to back up the file:

[root@linuxcool] # ispell-b testfile above is a brief introduction to the spell checker using the ispell command of linux. Of course, you have to use the above differences in detail before you understand it. If you want to know more, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report