mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-23 07:04:06 +02:00

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> Co-authored-by: Juri Dispan <juri.dispan@posteo.net> Co-authored-by: Isaac Vicente <isaacvicentsocial@gmail.com>
16 lines
382 B
Markdown
16 lines
382 B
Markdown
# cat
|
|
|
|
> 打印和拼接文件的工具。
|
|
> 更多信息:<https://www.gnu.org/software/coreutils/cat>.
|
|
|
|
- 以标准输出,打印文件内容:
|
|
|
|
`cat {{path/to/file}}`
|
|
|
|
- 多文件合并到目标文件:
|
|
|
|
`cat {{path/to/file1 path/to/file2 ...}} > {{target_file}}`
|
|
|
|
- 多文件合并,并追加到目标文件:
|
|
|
|
`cat {{path/to/file1 path/to/file2 ...}} >> {{target_file}}`
|