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.
EXAMPLE
rev filea
reverses the characters in each line of filea and sends them to standard output.
7th Edition — 1/27/82