mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-23 23:42:07 +02:00
cat: added the append example
This commit is contained in:
parent
4ddaf350f2
commit
2de7c9f932
1 changed files with 6 additions and 2 deletions
|
@ -2,10 +2,14 @@
|
|||
|
||||
> Print and concatenate files.
|
||||
|
||||
- Print the contents of *file1* to the standard output
|
||||
- Print the contents of a file to the standard output
|
||||
|
||||
`cat {{file1}}`
|
||||
`cat {{file}}`
|
||||
|
||||
- Concatenate several files into the target file.
|
||||
|
||||
`cat {{file1}} {{file2}} > {{target-file}}`
|
||||
|
||||
- Append serveral files into the target file.
|
||||
|
||||
`cat {{file1}} {{file2}} >> {{target-file}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue