Bash - tac

Print the file in reverse order e.g; last line first, first line last.

  • tac is the OPPOSITE of cat

tac manual

See also: cat

tac a.txt > b.txt