27 Linux document editing commands worth collecting

  • 2020-12-05 17:31:51
  • OfStack

Linux col command

The Linux col command is used to filter control characters.

In many UNIX specification files, there are RLF control characters. When we use the shell special character" > "And" > > ", the col instruction is effective in filtering out control characters that would otherwise be scrambled when the contents of the description file are printed out as plain text.

Linux colrm command

The Linux colrm command is used to filter out the specified line.

The colrm instruction reads the book from a STANDARD input device and outputs it to a standard output device. If no arguments are added, the instruction does not filter any 1 line.

Linux comm command

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

The instruction will be 1 column column to comparing the difference between the two sorted files, and will display the result, if you don't specify any parameters, will be the results into three line shows: line 1 is only appeared in the first file column, line 2 is seen only in the second file column, line 3 in 1 and 2 are seen in a file. If the filename given is called "-", the comm instruction reads the data from the standard input device.

Linux csplit command

The Linux csplit command is used to split files.

The file according to the specified template style after cutting, save the famous called xx00 respectively, xx01 xx02... The file. If the given file name is "-", the csplit instruction reads the 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, capable of editing only one line at a time rather than a full-screen operation.

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

Linux egrep command

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

The egrep execution is similar to "ES87en-ES88en". The syntax and parameters used can be referred to the grep instruction. The difference between egrep and grep is in the way the string is interpreted.

egrep is interpreted using extended regular expression grammar, while grep is interpreted using basic regular expression grammar. extended regular expression is more formal than basic regular expression.

Linux ex command

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

ex performs as vi-ES122en, using the syntax and parameters of the vi directive. To return from Ex to normal mode, enter the ":vi" or ":visual" directive in vim.

Linux fgrep command

This instruction is equivalent to executing the grep instruction with the parameter "-ES136en".
The Linux fgrep command is used to find qualified strings in a file.

Linux fmt command

The Linux fmt command is used for formatting text files.

The fmt instruction reads from the specified file, rearranges it in the specified format, and outputs it to a standard output device. If the specified file name is "-", the fmt instruction reads the data from the standard input device.

Linux fold command

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

The fold instruction reads from the specified file, adds additional characters to the columns that exceed the specified column width, and outputs them to the standard output device. If no file name is specified, or if the given file name is "-", the fold instruction reads the data from the standard input device.

Linux grep command

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

The grep directive is used to find a file containing the specified template style. If the contents of a file are found to conform to the specified template style, the grep directive is preset to display the column containing the template style. If no file name is specified, or if the given file name is "-", the grep instruction reads the data from the standard input device.

Linux ispell command

The Linux ispell command is used for the spell checker.

ispell preset will use/usr/lib/ispell/english hash dictionary file to check text files. If you find a word that is not in the dictionary in the document being examined, ispell will either suggest the words to use or ask you to add the new words to your personal dictionary.

Linux jed command

The Linux jed command is used to edit text files.
Jed is a program written by 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 editor. The operation complexity is 1 point higher than Pico, but the function is more complete. Joe opens multiple files at a time, placing each file in an edit area and performing the action of cutting and cutting between files.

Linux join command

The Linux join command is used to connect lines in two files that specify the same field content.
Find the lines in both files that specify the same field content, merge them, and output them to the standard output device.

Linux look command

The Linux look command is used to query words.
The look directive is used for English word queries. You simply give it the first character string it wants to query, and it will display all the words that have the first string that satisfies that condition.

Linux mtype command

mtype is the mtools tool instruction, simulating the MS-ES255en type instruction, displaying the contents of the ES257en-ES258en file.

Linux pico command

The Linux pico command is used to edit text files.

pico is an easy-to-use, display oriented text editor that comes with pine, which handles E-mail and newsgroups.

Linux rgrep command

The Linux rgrep command is used to recursively find eligible strings in a file.

The rgrep directive is similar to the grep directive in that it looks for files containing the specified template style. If the contents of a file are found to conform to the specified template style, the rgrep directive by default displays the column containing the template style.

Linux sed command

The Linux sed command uses script to process text files.
sed can follow the instructions of script to process and edit text files.
Sed is mainly used to automatically edit one or more files; Simplify repetitive operations on documents; Write the conversion program.

Linux sort command

The Linux sort command is used to sort the text file contents.
sort sorts by action units for the contents of text files.

Linux spell command

The Linux spell command creates a spell checker.
spell reads strings from standard input devices and displays misspelled words at the end.

Linux tr command

The Linux tr command is used to convert or delete characters from a file.
The tr instruction reads the data from the standard input device and, after string translation, outputs the results to the standard output device.

Linux expr command

The expr command is a manual command line counter used to evaluate the value of an expression variable under UNIX/LINUX. 1 is generally used for integer values as well as for strings.

Linux uniq command

The Linux uniq command is used to check and delete rows that appear repeatedly in a text file.

uniq can check for repeated rows and columns in a text file.

Linux wc command

The Linux wc command is used for word count.

Using the wc instruction, we can calculate the number of Byte, word count, or column count of a file. If the file name is not specified, or if the given file name is "-", the wc instruction reads the data from the standard input device.

Linux let command

Command: let

The let command is the calculation tool in BASH. It is used to execute one or more expressions without adding $to represent variables in a variable calculation. If the expression contains Spaces or other special characters, it must be raised.

Recommendation:

Interested friends can pay attention to this site WeChat public number [code farmers that thing], more web production effects source code and learn dry goods oh!!

conclusion


Related articles: