xref: /illumos-gate/usr/src/man/man1/rev.1 (revision 8d19558388ee4f1b08bb254c61e96110d5fa90c8)
te
Copyright (c) 1982-2007 AT&T Knowledge Ventures
To view license terms, see http://www.opensource.org/licenses/cpl1.0.txt
Portions Copyright (c) 2009, Sun Microsystems, Inc. All Rights Reserved.
REV 1 "Aug 11, 2009"
NAME
rev - reverse the characters or lines of one or more files
SYNOPSIS

/usr/bin/rev [-l] [file...]
"ksh93"

rev [-l] [file...]
DESCRIPTION

rev copies one or more files to standard output, reversing the order of characters on every line of the file, or reversing the order of lines of the file if -l is specified

OPTIONS

The following options are supported: -l

--line

Reverse the order of the lines of the file, instead of characters.

OPERANDS

The following operands are supported: file

Specifies the name of the file to use as input. If file is not specified, or if file is a -, rev copies from standard input starting at the current offset.

EXIT STATUS

The following exit values are returned: 0

All files copied successfully.

>0

One or more files did not copy.

ATTRIBUTES

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE ATTRIBUTE VALUE
CSI Enabled
Interface Stability Committed
SEE ALSO

cat (1), ksh93 (1), tail (1), attributes (7)