fixed: fixed some translating problem. (#30923)
* fixed: fixed some translating problem. I don't know how did you translate the "猛击猫“,but it's really not a good translation. I almost laugh to death to see this(just feel fun,no impolite). : ) * Update index.md * Update index.md
This commit is contained in:
committed by
Kristofer Koishigawa
parent
3016c6e798
commit
231d388d8b
@ -1,41 +1,43 @@
|
|||||||
---
|
---
|
||||||
title: Bash Cat
|
title: Bash Cat
|
||||||
localeTitle: Bash Cat
|
localeTitle: Bash Cat
|
||||||
---
|
---
|
||||||
|
|
||||||
## Cat
|
## Cat
|
||||||
|
|
||||||
Cat是Unix操作系统中最常用的命令之一。
|
Cat是Unix操作系统中最常用的命令之一。
|
||||||
|
|
||||||
Cat用于按顺序读取文件并将其打印到标准输出。 这个名字是从它的功能(con**cat**enate files)而来。
|
Cat用于按顺序读取文件并将其打印到标准输出。 这个名字是从它的功能(con**cat**enate files)而来。
|
||||||
|
|
||||||
### 用法
|
### 用法
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cat [options] [file_names]
|
cat [options] [file_names]
|
||||||
```
|
```
|
||||||
|
|
||||||
最常用的选项:
|
最常用的选项:
|
||||||
|
|
||||||
* `-b` ,数字非空白输出行
|
* `-b` ,数字非空白输出行
|
||||||
* `-n` ,对所有输出行进行编号
|
* `-n` ,对所有输出行进行编号
|
||||||
* `-s` ,挤压多个相邻的空白行
|
* `-s` ,挤压多个相邻的空白行
|
||||||
* `-v` ,显示非打印字符,标签和行尾字符除外
|
* `-v` ,显示非打印字符,标签和行尾字符除外
|
||||||
|
|
||||||
### 例子
|
### 例子
|
||||||
|
|
||||||
在终端机打印file.txt的内容:
|
在终端中打印file.txt的内容:
|
||||||
|
|
||||||
```bash
|
|
||||||
cat file.txt
|
```bash
|
||||||
```
|
cat file.txt
|
||||||
|
```
|
||||||
连接两个文件的内容并在终端机中显示结果:
|
|
||||||
|
连接两个文件的内容并在终端中显示结果:
|
||||||
```bash
|
|
||||||
cat file1.txt file2.txt
|
|
||||||
```
|
```bash
|
||||||
|
cat file1.txt file2.txt
|
||||||
#### 更多信息:
|
```
|
||||||
|
|
||||||
* 维基百科:https://en.wikipedia.org/wiki/Cat\_(Unix)
|
#### 更多信息:
|
||||||
|
|
||||||
|
* 维基百科:https://en.wikipedia.org/wiki/Cat\_(Unix)
|
||||||
|
Reference in New Issue
Block a user