REV(1) — UNIX Programmer’s Manual
NAME
rev − reverse lines of a file
SYNOPSIS
rev [ file ] ...
DESCRIPTION
Rev copies the named files to the standard output, reversing the order of characters in every line. If no file is specified, the standard input is copied.
7th Edition