TAC

this utility prints the lines of a file in reverse order (last line first). It's the opposite of cat. Useful for reversing logs or data entries.

USAGE

root@oco:~$ tac filename

 * the -s SEPARATOR is used for a custom line separator.
 * the -r treats the separator as a regular expression.
 * the -b places the separator before each output chunk.

Last updated