Print this page
13507 some man pages need update following 13405
6308 some man pages are obsolete after moving to ksh builtins
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/man/man1/rev.1
+++ new/usr/src/man/man1/rev.1
1 -'\" te
2 1 .\" Copyright (c) 1982-2007 AT&T Knowledge Ventures
3 2 .\" To view license terms, see http://www.opensource.org/licenses/cpl1.0.txt
4 3 .\" 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
13 -
14 -.SS "ksh93"
15 -.LP
16 -.nf
17 -rev [-\fBl\fR] [\fIfile\fR...]
18 -.fi
19 -
20 -.SH DESCRIPTION
21 -.sp
22 -.LP
23 -\fBrev\fR copies one or more files to standard output, reversing the order of
4 +.\" Copyright 2021 OmniOS Community Edition (OmniOSce) Association.
5 +.Dd Feb 9, 2021
6 +.Dt REV 1
7 +.Os
8 +.Sh NAME
9 +.Nm rev
10 +.Nd reverse the characters or lines of one or more files
11 +.Sh SYNOPSIS
12 +.Nm
13 +.Op Fl l
14 +.Oo Ar file Oc Ns ...
15 +.Sh DESCRIPTION
16 +.Sh OPTIONS
17 +.Nm
18 +copies one or more files to standard output, reversing the order of
24 19 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
20 +file if
21 +.Fl l
22 +is specified.
29 23 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
24 +.Bl -tag -width Ar
25 +.It Fl l Ns \&, Fl \-line
40 26 Reverse the order of the lines of the file, instead of characters.
41 -.RE
42 -
43 -.SH OPERANDS
44 -.sp
45 -.LP
27 +.El
28 +.Sh OPERANDS
46 29 The following operands are supported:
47 -.sp
48 -.ne 2
49 -.na
50 -\fB\fIfile\fR\fR
51 -.ad
52 -.RS 8n
30 +.Bl -tag -width Ar
31 +.It Ar file
53 32 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
58 -
59 -.SH EXIT STATUS
60 -.sp
61 -.LP
33 +.Pp
34 +If
35 +.Ar file
36 +is not specified or is \(mi,
37 +.Nm
38 +copies from standard input starting at the current offset.
39 +.El
40 +.Sh EXIT STATUS
62 41 The following exit values are returned:
63 -.sp
64 -.ne 2
65 -.na
66 -\fB\fB0\fR\fR
67 -.ad
68 -.RS 6n
42 +.Bl -tag -width Ds
43 +.It Sy 0
69 44 All files copied successfully.
70 -.RE
71 -
72 -.sp
73 -.ne 2
74 -.na
75 -\fB\fB>0\fR\fR
76 -.ad
77 -.RS 6n
45 +.It Sy >0
78 46 One or more files did not copy.
79 -.RE
80 -
81 -.SH ATTRIBUTES
82 -.sp
83 -.LP
84 -See \fBattributes\fR(5) for descriptions of the following attributes:
85 -.sp
86 -
87 -.sp
88 -.TS
89 -box;
90 -c | c
91 -l | l .
92 -ATTRIBUTE TYPE ATTRIBUTE VALUE
93 -_
94 -CSI Enabled
95 -_
96 -Interface Stability Committed
97 -.TE
98 -
99 -.SH SEE ALSO
100 -.sp
101 -.LP
102 -\fBcat\fR(1), \fBksh93\fR(1), \fBtail\fR(1), \fBattributes\fR(5)
47 +.El
48 +.Sh INTERFACE STABILITY
49 +.Sy Committed .
50 +.Sh SEE ALSO
51 +.Xr cat 1 ,
52 +.Xr ksh93 1 ,
53 +.Xr tail 1 ,
54 +.Xr attributes 5
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX