9070 Remove wanboot from gate
[unleashed.git] / usr / src / man / man1 / rev.1
blobe7f4321a6e754cb87dfb6edf919d4044bb72db9f
1 '\" te
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"
6 .SH NAME
7 rev \- reverse the characters or lines of one or more files
8 .SH SYNOPSIS
9 .LP
10 .nf
11 \fB/usr/bin/rev\fR [\fB-l\fR] [\fIfile\fR...]
12 .fi
14 .SS "ksh93"
15 .LP
16 .nf
17 rev [-\fBl\fR] [\fIfile\fR...]
18 .fi
20 .SH DESCRIPTION
21 .sp
22 .LP
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
26 .SH OPTIONS
27 .sp
28 .LP
29 The following options are supported:
30 .sp
31 .ne 2
32 .na
33 \fB\fB-l\fR\fR
34 .ad
35 .br
36 .na
37 \fB\fB--line\fR\fR
38 .ad
39 .RS 10n
40 Reverse the order of the lines of the file, instead of characters.
41 .RE
43 .SH OPERANDS
44 .sp
45 .LP
46 The following operands are supported:
47 .sp
48 .ne 2
49 .na
50 \fB\fIfile\fR\fR
51 .ad
52 .RS 8n
53 Specifies the name of the file to use as input.
54 .sp
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.
57 .RE
59 .SH EXIT STATUS
60 .sp
61 .LP
62 The following exit values are returned:
63 .sp
64 .ne 2
65 .na
66 \fB\fB0\fR\fR
67 .ad
68 .RS 6n
69 All files copied successfully.
70 .RE
72 .sp
73 .ne 2
74 .na
75 \fB\fB>0\fR\fR
76 .ad
77 .RS 6n
78 One or more files did not copy.
79 .RE
81 .SH ATTRIBUTES
82 .sp
83 .LP
84 See \fBattributes\fR(5) for descriptions of the following attributes:
85 .sp
87 .sp
88 .TS
89 box;
90 c | c
91 l | l .
92 ATTRIBUTE TYPE  ATTRIBUTE VALUE
94 CSI     Enabled
96 Interface Stability     Committed
97 .TE
99 .SH SEE ALSO
102 \fBcat\fR(1), \fBksh93\fR(1), \fBtail\fR(1), \fBattributes\fR(5)