2015-12-28 22:01:39 +01:00
|
|
|
# tac
|
|
|
|
|
2020-02-08 20:18:47 +05:30
|
|
|
> Print and concatenate files in reverse (last line first).
|
2021-04-01 17:54:26 +02:00
|
|
|
> More information: <https://www.gnu.org/software/coreutils/tac>.
|
2015-12-28 22:01:39 +01:00
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Print the contents of *file1* reversed to the standard output:
|
2015-12-28 22:01:39 +01:00
|
|
|
|
|
|
|
`tac {{file1}}`
|
|
|
|
|
2020-02-08 20:18:47 +05:30
|
|
|
- Print the contents of the standard input reversed to the standard output:
|
|
|
|
|
|
|
|
`{{command}} | tac`
|
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Concatenate several files reversed into the target file:
|
2015-12-28 22:01:39 +01:00
|
|
|
|
2016-07-23 01:54:06 +05:30
|
|
|
`tac {{file1}} {{file2}} > {{target_file}}`
|