1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/tac.md
2021-03-30 09:55:44 -04:00

452 B

tac

Print and concatenate files in reverse (last line first). More information: https://www.gnu.org/software/coreutils/manual/html_node/tac-invocation.html.

  • 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}}