27 Linux document editing commands you should know

Linux col command

The Linux col command is used to filter control characters.

In many UNIX documentation, there are RLF control characters. When we use shell special characters ">" and ">>" to output the contents of the description file as a plain text file, the control characters will become garbled, and the col command can effectively filter out these control characters.

Linux colrm command

The Linux colrm command is used to filter out specified lines.

The colrm instruction reads the clerk from the standard input device, and then outputs it to the standard output device. If no parameters are added, the command will not filter any line.

Linux comm command

The Linux comm command is used to compare two files that have been sorted.

This command will compare the differences between the two sorted files column by column, and display the results. If no parameters are specified, the results will be divided into 3 lines for display: the first line only appears in the first file The second row is the column that has only appeared in the second file, and the third row is the column that has appeared in both the first and second files. If the given file name is "-", the comm command will read data from the standard input device.

Linux csplit command

The Linux csplit command is used to split files.

After cutting the files according to the specified template style, save them as files named xx00, xx01, xx02... If the given file name is "-", the csplit command will read data from the standard input device.

Linux ed command

The Linux ed command is a text editor for text editing.

ed is the simplest text editing program in Linux, which can only edit one line at a time instead of full-screen operation.

The ed command is not a commonly used command. Generally, the vi command is more commonly used. But the ed text editor is useful for editing large files or for text editing in shell script programs.

Linux egrep command

The Linux egrep command is used to find a specified string in a file.

The execution effect of egrep is similar to "grep-E". The syntax and parameters used can refer to the grep command. The difference from grep lies in the method of interpreting strings.

Egrep is interpreted using extended regular expression grammar, while grep is interpreted using basic regular expression grammar. Extended regular expression is more standardized than basic regular expression.

Linux ex command

The Linux ex command is used to start the vim text editor in Ex mode.

The execution effect of ex is like vi -E. You can refer to the vi command for the syntax and parameters. If you want to return to the normal mode from Ex mode, just enter the ":vi" or ":visual" command in vim.

Linux fgrep command

This command is equivalent to executing the grep command plus the parameter "-F".

The Linux fgrep command is used to find qualified strings in a file.

Linux fmt command

The Linux fmt command is used to compose text files.

The fmt command will read the content from the specified file, rearrange it according to the specified format, and output it to the standard output device. If the specified file name is "-", the fmt command will read data from the standard input device.

Linux fold command

The Linux fold command is used to limit the file column width.

The fold command will read the content from the specified file, add the column that exceeds the limited column width to the additional column characters, and output it to the standard output device. If no file name is specified, or the file name given is "-", the fold command will read data from the standard input device.

Linux grep command

The Linux grep command is used to find qualified strings in a file.

The grep command is used to find a file whose content contains the specified template style. If the content of a file is found to conform to the specified template style, the default grep command will display the column containing the template style. If no file name is specified, or the file name given is "-", the grep command will read data from the standard input device.

Linux ispell command

The Linux ispell command is used in spell check programs.

By default, ispell will use the /usr/lib/ispell/english.hash dictionary file to check text files. If a vocabulary that is not in the dictionary is found in the checked file, ispell will suggest the vocabulary to use, or let you add the new vocabulary to your personal dictionary.

Linux jed command

The Linux jed command is used to edit text files.

Jed is a program written in Slang, suitable for editing the original code of the program.

Linux joe command

The Linux joe command is used to edit text files.

Joe is a powerful full-screen text editing program. The operation complexity is a bit higher than Pico, but the functions are more complete. Joe can open multiple files at once, and each file is placed in an editing area, and can cut and paste between files.

Linux join command

The Linux join command is used to join lines with the same content in the specified fields in two files.

Find the lines with the same content in the specified fields in the two files, merge them, and then output to the standard output device.

Linux look command

The Linux look command is used to look up words.

The look command is used for searching English words. You only need to give it the prefix string you want to query, and it will display all the words whose beginning string meets this condition.

Linux mtype command

mtype is the mtools tool command, which simulates the type command of MS-DOS and can display the content of MS-DOS files.

Linux pico command

The Linux pico command is used to edit text files.

pico is an easy-to-use, display-oriented text editing program that comes with pine, a program that handles emails and newsgroups.

Linux rgrep command

The Linux rgrep command is used to recursively search for qualified strings in a file.

The function of the rgrep command is similar to that of the grep command. It can search for files containing the specified template style. If the content of a file is found to conform to the specified template style, the default rgrep command will display the column containing the template style.

Linux sed command

The Linux sed command uses script to process text files.

Sed can process and edit text files in accordance with script instructions.

Sed is mainly used to automatically edit one or more files; simplify repeated operations on files; write conversion programs, etc.

Linux sort command

The Linux sort command is used to sort the contents of text files.

Sort can sort the contents of text files in line units.

Linux spell command

The Linux spell command can establish a spell checker.

spell can read the string from the standard input device, and display the misspelled word after the end.

Linux tr command

The Linux tr command is used to convert or delete characters in a file.

The tr instruction reads data from the standard input device, and after the character string is translated, outputs the result to the standard output device.

Linux expr command

The expr command is a manual command line counter used to evaluate the value of expression variables under UNIX/LINUX. It is generally used for integer values ​​and can also be used for character strings.

Linux uniq command

The Linux uniq command is used to check and delete repeated rows and columns in a text file.

uniq can check repeated rows and columns in text files.

Linux wc command

The Linux wc command is used to count the word count.

Using the wc command, we can calculate the number of bytes, words, or columns of the file. If the file name is not specified or the file name given is "-", the wc command will read data from the standard input device.

Linux let command

Command: let

The let command is a calculation tool in BASH, used to execute one or more expressions, and there is no need to add $ to represent variables in variable calculations. If the expression contains spaces or other special characters, they must be quoted.

CL-2H Copper Connecting Terminals

Our company specializes in the production and sales of all kinds of terminals, copper terminals, nose wire ears, cold pressed terminals, copper joints, but also according to customer requirements for customization and production, our raw materials are produced and sold by ourselves, we have their own raw materials processing plant, high purity T2 copper, quality and quantity, come to me to order it!

CL-2H Copper Connecting Terminals

Taixing Longyi Terminals Co.,Ltd. , https://www.longyicopperterminals.com

This entry was posted in on