add new chinese translations
This commit is contained in:
28
pages.zh/linux/cat.md
Normal file
28
pages.zh/linux/cat.md
Normal file
@@ -0,0 +1,28 @@
|
||||
# cat
|
||||
|
||||
> 打印和连接文件。
|
||||
> 更多信息:<https://www.gnu.org/software/coreutils/cat>。
|
||||
|
||||
- 将文件的内容打印到 `stdout`:
|
||||
|
||||
`cat {{path/to/file}}`
|
||||
|
||||
- 将多个文件连接到一个输出文件:
|
||||
|
||||
`cat {{path/to/file1 path/to/file2 ...}} > {{path/to/output_file}}`
|
||||
|
||||
- 将多个文件追加到一个输出文件:
|
||||
|
||||
`cat {{path/to/file1 path/to/file2 ...}} >> {{path/to/output_file}}`
|
||||
|
||||
- 将 `stdin` 写入文件:
|
||||
|
||||
`cat - > {{path/to/file}}`
|
||||
|
||||
- 为所有输出行编号:
|
||||
|
||||
`cat -n {{path/to/file}}`
|
||||
|
||||
- 显示不可打印和空白字符(如果是非ASCII字符,则带有 `M-` 前缀):
|
||||
|
||||
`cat -v -t -e {{path/to/file}}`
|
Reference in New Issue
Block a user