Reverse cat

How to concatenate and/or print files in reverse order? tac is your friend.

From the man page:

Write each FILE to standard output, last line first. With no FILE, or when FILE is -, read standard input.

The easiest way to use it…

tac filename.txt

Leave a Reply

You must be logged in to post a comment.