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... ]

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.