markdown 猫命令

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 猫命令相关的知识,希望对你有一定的参考价值。

cat has 3 related functions with regard to text files: 
  1. displaying them 
  2. combining copies of them 
  3. creating new ones.

cat's general syntax is

    cat [options] [filenames] [-] [filenames]

* **Reading files**

Display the contents of a file named file1:

    cat file1
    
The standard output of cat is redirected using the output redirection operator 
(which is represented by a rightward pointing angular bracket) to file2:

    cat file1 > file2
    
The output from cat is written to file2 instead of being displayed on the monitor screen.
Write into a file:

    cat > file
    
* **Concatenation**
    
The following command will concatenate copies of the contents of the three files 
file1, file2 and file3 (display on screen):

    cat file1 file2 file3

Redirection operator to another file, such as file4, using the following:

    cat file1 file2 file3 > file4

In the next example, the output of cat is piped to the sort filter in order to 
alphabetize the lines of text after concatenation and prior to writing to file4:

    cat file1 file2 file3 | sort > file4
    
* **File creation**

A new file named file1 can be created by typing (or overwritten if file1 already
exists):

    cat > file1
    
Use append operator:

    cat >> file1

To create a new file file6 that consists of text typed in from the keyboard 
followed by the contents of file5, first enter the following:

    cat - file5 > file6

Or to create a new file file8 that consists of the contents of file7 followed 
by text typed in from the keyboard, first enter the following:

    cat file7 - > file8

以上是关于markdown 猫命令的主要内容,如果未能解决你的问题,请参考以下文章

markdown bash,猫,头,尾巴

markdown写法

markdown写法

text 简单的猫命令

使用 AT 命令实现西门子短信猫收发短信实例

求光猫破解教程,型号ZXHN F652.