Cat, TAC, NL: Show file Contents
Cat:(concatenate ) Displays the contents of the file starting from the beginning
Use format:
Cat [OPTION] [FILE] ...
Parameters:
-A: Show all, equivalent to-vet integration options
-B: Display line numbers, except for rows with content, with blank lines
-E: Displays the line break symbol at the end of each line
-N: Line numbers are displayed for each row, and blank lines are displayed
-T: The TAB key is displayed in ^i
-V: Show special characters
Example:
Example 1: Displaying the contents of a file
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/7A/0E/wKioL1ahz1-DOlZPAAAKo5lvTNo936.png "title=" Qq20160122144118.png "alt=" Wkiol1ahz1-dolzpaaako5lvtno936.png "/>
Example 2: displaying file contents and printing line numbers
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/7A/0E/wKioL1ahz7WAO5-aAAAMYIwiqRo007.png "title=" Qq20160122144249.png "alt=" Wkiol1ahz7wao5-aaaamyiwiqro007.png "/>
Displays the contents of the file and prints the line number and prints the line number of the blank line
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/7A/0E/wKioL1ah0EuSnQ5KAAAPS4MKF9U591.png "title=" Qq20160122144519.png "alt=" Wkiol1ah0eusnq5kaaaps4mkf9u591.png "/>
Example 3. Display all contents of the file, including line breaks and special characters
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/7A/0E/wKioL1ah0PqRRM6TAAANnVfoBXQ113.png "title=" Qq20160122144813.png "alt=" Wkiol1ah0pqrrm6taaannvfobxq113.png "/>
-----------------------------------------Split Line-----------------------------------------------------
TAC: Displays the file contents at the end of the file content
Use format:
TAC [OPTION] [FILE] ...
Parameters:
-B:
-R:
-S:
Example . Reverse Display file
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/7A/0F/wKiom1ah1GGRDkbPAAATXgpw6as571.png "title=" Qq20160122150350.png "alt=" Wkiom1ah1ggrdkbpaaatxgpw6as571.png "/>
---------------------------------------Split Line----------------------------------------------------
NL: Display file contents and line numbers
Use format:
nl [OPTION] ... [FILE] ...
Parameters:
-B: Specify the line number in two ways:
-B A: line number (CAT-N) is displayed, whether or not it is a blank line
-B T: line number is not displayed if blank line (default value)
-N: List the display method of line number in three kinds:
-N LN: line number is displayed on the left of the screen
-N RN: The line number is displayed on the very right of this field
-N RZ: line number is displayed on the right of this field, 0
-W: The number of digits in the row bar
Example:
Example 1. Show file contents
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/7A/10/wKiom1ah10Lw4XmMAAAMhw-7Td4204.png "title=" Qq20160122151559.png "alt=" Wkiom1ah10lw4xmmaaamhw-7td4204.png "/>
Example 2. line numbers are displayed, regardless of whether they are blank lines
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/7A/10/wKiom1ah16qjLPm8AAAOz-D5QuQ905.png "title=" Qq20160122151753.png "alt=" Wkiom1ah16qjlpm8aaaoz-d5quq905.png "/>
Example 3. How line numbers are displayed
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/7A/0F/wKioL1ah2MahJauwAAAf7ohL02M112.png "title=" Qq20160122152135.png "alt=" Wkiol1ah2mahjauwaaaf7ohl02m112.png "/>
Example 4. Custom Line number occupancy (6-bit customization to 3-bit)
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/7A/0F/wKioL1ah2Y6TTAwkAAARho9IAhY707.png "title=" Qq20160122152430.png "alt=" Wkiol1ah2y6ttawkaaarho9iahy707.png "/>
Cat, TAC, NL
for Linux common commands