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}
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).