tldr/pages/common/cat.md

11 lines
228 B
Markdown
Raw Normal View History

2014-05-10 13:23:41 +01:00
# cat
> Print and concatenate files.
- Print the contents of *file1* to the standard output
2014-05-12 12:30:53 +01:00
`cat {{file1}}`
2014-05-10 13:23:41 +01:00
- Sequentially print the contents of *file1* and *file2* to the file *file3*.
2014-05-12 12:30:53 +01:00
`cat {{file1}} {{file2}} > {{file3}}`