mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-24 21:55:29 +02:00
tac: add stdin example (#3844)
This commit is contained in:
parent
bc50bdf850
commit
2c9b7c9f5c
1 changed files with 5 additions and 1 deletions
|
@ -1,11 +1,15 @@
|
|||
# tac
|
||||
|
||||
> Print and concatenate files in reverse.
|
||||
> Print and concatenate files in reverse (last line first).
|
||||
|
||||
- Print the contents of *file1* reversed to the standard output:
|
||||
|
||||
`tac {{file1}}`
|
||||
|
||||
- Print the contents of the standard input reversed to the standard output:
|
||||
|
||||
`{{command}} | tac`
|
||||
|
||||
- Concatenate several files reversed into the target file:
|
||||
|
||||
`tac {{file1}} {{file2}} > {{target_file}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue