1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-23 05:24:11 +02:00
tldr/pages/common/cat.md

16 lines
298 B
Markdown
Raw Normal View History

2014-05-10 15:23:41 +03:00
# cat
> Print and concatenate files.
2015-12-29 18:45:42 -08:00
- Print the contents of a file to the standard output
2014-05-10 15:23:41 +03:00
2015-12-29 18:45:42 -08:00
`cat {{file}}`
2014-05-10 15:23:41 +03:00
2015-11-22 23:09:29 +02:00
- Concatenate several files into the target file.
2014-05-10 15:23:41 +03:00
2015-11-24 00:05:54 +02:00
`cat {{file1}} {{file2}} > {{target-file}}`
2015-12-29 18:45:42 -08:00
- Append serveral files into the target file.
`cat {{file1}} {{file2}} >> {{target-file}}`