Manual Page Result
0
Command: rev | Section: 1 | Source: UNIX v10 | File: rev.1
REV(1) General Commands Manual REV(1)
NAME
rev, revpag - reverse lines or pages
SYNOPSIS
rev [ file ... ]
revpag [ option ... ] [ file ... ]
DESCRIPTION
Rev copies the standard input or the named files to the standard out-
put, reversing the order of characters in every line.
Revpag copies the standard input or the named files to the standard
output, reversing the order of the pages. (The name means the standard
input.) Options define what constitutes a `page':
-d The input is troff(1) output; page breaks are encoded in it.
-f Append a new-page character (014) to the last input page (which
is the first page on the output), if this page is not of the de-
clared length.
-l n Set the number of lines per page in ordinary ASCII input (66 by
default). A new-page character (014) is also recognized as a
page break.
-o list
Output only pages whose page numbers appear in the comma-sepa-
rated list of numbers and ranges. A `page number' means the or-
dinal position of a page in the input. A range n-m means pages
n through m. In a range, a missing m means the beginning; a
missing n means the end.
EXAMPLES
rev <webster | sort | rev >walker
From a standard Webster's dictionary, produce Walker's rhyming
dictionary, which is alphabetized from right to left.
tail -r <forward >backward
Reverse the order of lines in a file; see tail(1).
REV(1)