1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 06:44:56 +02:00
tldr/pages/common/tac.md
2020-02-08 15:48:47 +01:00

15 lines
353 B
Markdown

# tac
> 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}}`