1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 00:42:08 +02:00

cat: update Chinese translation (#13819)

This commit is contained in:
Yi Liu 2024-10-02 16:47:04 +08:00 committed by GitHub
parent fa64fdce62
commit 5eaabfb866
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,16 +1,24 @@
# cat
> 打印和拼接文件的工具
> 打印和连接文件
> 更多信息:<https://manned.org/cat.1posix>.
- 以标准输出,打印文件内容
- 将文件内容打印到 `标准输出`
`cat {{path/to/file}}`
`cat {{路径/到/文件}}`
- 多文件合并到目标文件:
- 将多个文件连接成一个输出文件:
`cat {{path/to/file1 path/to/file2 ...}} > {{target_file}}`
`cat {{路径/到/文件1 路径/到/文件2 ...}} > {{路径/到/输出文件}}`
- 多文件合并,并追加到目标文件
- 将多个文件追加到一个输出文件中
`cat {{path/to/file1 path/to/file2 ...}} >> {{target_file}}`
`cat {{路径/到/文件1 路径/到/文件2 ...}} >> {{路径/到/输出文件}}`
- 无缓冲地将文件内容复制到输出文件中:
`cat -u {{/dev/tty12}} > {{/dev/tty13}}`
- 将 `标准输入` 写入文件:
`cat - > {{路径/到/文件}}`