Linux and Unix tac command
Quick links
About tac
Syntax
Examples
Related commands
Linux and Unix main page
Concatenate and print files in reverse.
tac [OPTION]... [FILE]...
| -b, --before | attach the separator before instead of after |
| -r, --regex | interpret the separator as a regular expression |
| -s, --seperator=STRING | use STRING as the separator instead of newline |
| --help | display this help and exit |
| --version | output version information and exit |
tac file1.txt > file2.txt
Reverses the data in file1.txt and outputs the results into file2.txt.
