In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you "how to use Linux common command ispell life", the content is simple and easy to understand, clear organization, I hope to help you solve doubts, let Xiaobian lead you to study and learn "Linux common command ispell life how to use" this article bar.
The ispell command is used by spell checkers. ispell checks text files by default using the/usr/lib/ispell/english.hash dictionary file
Syntax ispell [-aAbBClmMnNPStVx][-d][-L][-p][-w][-W][File to check] Parameters:
-a This parameter must be used when other program output is sent to ispell.
-A When it reads the "&Include File&" string, it checks the contents of the file specified after the string.
-b Generate a backup file named.bak.
-B Check for ligatures.
-C does not check for ligatures.
-d Specifies the dictionary file.
-l reads a string from a standard input device and displays misspelled words at the end.
-L Specifies the number of lines displayed in the text.
-m Automatically considers suffix changes.
-M After entering the ispell, the button for instructions is displayed at the bottom of the screen.
-n Files checked are in noff or troff format.
-N After entering the ispell, the key that does not show instructions at the bottom of the screen.
-p Specifies a personal dictionary file.
-P does not consider endings.
-S does not sort suggested replacement vocabulary.
-t Checks if the file is in TeX or LaTeX format.
-V Non-ANSI characters are displayed as "M-^."
-w When checking, pick out the characters that contain the specified characters.
-W Does not check words of specified length.
-x Do not create backup files.
Examples Check spelling of files. For example, to check the testfile, you can use the following command:
ispell testfile If suspicious words appear in the file, the first suspicious word appears to be highlighted, and the word modification suggestions and ispell operation commands are given at the bottom of the screen. As follows:
netwrks File: testfile Linux netwrks are becoming more and more common, but security is often an overlooked issue. Unfortunately 0: networks [SP]R)epl A)ccept I)nsert L)ookup U)ncap Q)uit e(X)it or ? for help In this example, check for netwrks errors and prompt for corrections. Enter "0" to correct the errors using networks and continue to display the next error until all errors are displayed.
Through the above example we can find that there is a spelling error in the file testfile, and the file needs to be backed up after modification. Use the following command:
ispell-b testfile #While checking spelling errors, backup files If the file has no spelling errors, no information will be displayed. Through ls command, we can also view the backup file testfile.bak that generated the file testfile under the current file directory. The results are as follows:
$ ls #View files in the current directory as a list examples.desktop testfile_1 testfile.bak xx01 template pictures music testfile testfile1 testfile_2 xx00 Public video file desktop, testfile.bak file is the backup file generated by the command just now, the content is the same as the original testfile file content.
The above is "Linux common command ispell life how to use" all the content of this article, thank you for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.