mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 00:22:09 +02:00
cat: add Chinese translation (#15491)
* cat: add zh translation * Update pages.zh/linux/cat.md Co-authored-by: P2Tree <dicksonliuming@gmail.com> --------- Co-authored-by: P2Tree <dicksonliuming@gmail.com>
This commit is contained in:
parent
fe05e8b89b
commit
2775bc93f8
1 changed files with 28 additions and 0 deletions
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 {{路径/到/文件}}`
|
||||
|
||||
- 将多个文件连接到一个输出文件:
|
||||
|
||||
`cat {{路径/到/文件1 路径/到/文件2 ...}} > {{路径/到/输出文件}}`
|
||||
|
||||
- 将多个文件附加到输出文件:
|
||||
|
||||
`cat {{路径/到/文件1 路径/到/文件2 ...}} >> {{路径/到/输出文件}}`
|
||||
|
||||
- 将 `stdin` 写入文件:
|
||||
|
||||
`cat - > {{路径/到/文件}}`
|
||||
|
||||
- 显示带有行号的所有行:
|
||||
|
||||
`cat -n {{路径/到/文件}}`
|
||||
|
||||
- 显示不可打印字符和空白字符(如果非 ASCII,则带有 `M-` 前缀):
|
||||
|
||||
`cat -v -t -e {{路径/到/文件}}`
|
Loading…
Add table
Reference in a new issue