skaembutils
Software
www.skarnet.org
The tac program
tac prints files line by line - beginning with the last line
and ending with the first line.
Interface
tac [ file... ]
- tac will read file, reverse the order of its lines,
then print the result on stdout and exit 0.
- If it encounters a hard error, tac exits 111.
- If file is -, or there is no file,
tac reads stdin.
Notes
tac slurps each file into memory before reversing the
lines. Therefore it's unsuitable for very large files, especially
on embedded systems where memory requirements are tight. It's very
efficient and cheap for small and average-sized files though.