Linux (GNU Coreutils package) comes bundled with an exciting tool called 'tac'. This is nothing but 'cat' spelled in reverse and works likewise.
This short video will teach you how to reverse the output of any command or I/O stream using the 'tac' command.