Print files in reverse with coreutils 'tac' and 'rev' commands
Sometimes it would be useful to print file contents or output of previously executed command in reverse. There are two little utilities that are part of Linux coreutils: tac and rev. TAC concatenates and prints files in reverse (last line first). REV reverses lines of a file: it copies the specified files to the standard output, reversing the order of characters in every line.
Read more →