tac

tac

The tac command is the opposite of cat. cat prints the contents of a file from beginning to end while tac prints the contents of files from end to beginning. See the example of the file below.


cat info


mike Helena 56 Montana Street

tom Missoula 43 South Street

mary Butte 84 Copper Street


tac info


mary Butte 84 Copper Street

tom Missoula 43 South Street

mike Helena 56 Montana Street