1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages.zh/common/cat.md
Sebastiaan Speck dcb53c85a0
pages*: update outdated pages (#11821)
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>
2023-12-28 16:48:20 +01:00

382 B

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}}