2 .\" Copyright (c) 1982-2007 AT&T Knowledge Ventures
3 .\" To view license terms, see http://www.opensource.org/licenses/cpl1.0.txt
4 .\" Portions Copyright (c) 2009, Sun Microsystems, Inc. All Rights Reserved.
5 .TH REV 1 "Aug 11, 2009"
7 rev \- reverse the characters or lines of one or more files
11 \fB/usr/bin/rev\fR [\fB-l\fR] [\fIfile\fR...]
17 rev [-\fBl\fR] [\fIfile\fR...]
23 \fBrev\fR copies one or more files to standard output, reversing the order of
24 characters on every line of the file, or reversing the order of lines of the
25 file if \fB-l\fR is specified
29 The following options are supported:
40 Reverse the order of the lines of the file, instead of characters.
46 The following operands are supported:
53 Specifies the name of the file to use as input.
55 If \fIfile\fR is not specified, or if \fIfile\fR is a \fB-\fR, \fBrev\fR copies
56 from standard input starting at the current offset.
62 The following exit values are returned:
69 All files copied successfully.
78 One or more files did not copy.
84 See \fBattributes\fR(5) for descriptions of the following attributes:
92 ATTRIBUTE TYPE ATTRIBUTE VALUE
96 Interface Stability Committed
102 \fBcat\fR(1), \fBksh93\fR(1), \fBtail\fR(1), \fBattributes\fR(5)