1 REV(1) User Commands REV(1)
2
3
4
5 NAME
6 rev - reverse the characters or lines of one or more files
7
8 SYNOPSIS
9 /usr/bin/rev [-l] [file...]
10
11
12 ksh93
13 rev [-l] [file...]
14
15
16 DESCRIPTION
17 rev copies one or more files to standard output, reversing the order of
18 characters on every line of the file, or reversing the order of lines
19 of the file if -l is specified
20
21 OPTIONS
22 The following options are supported:
23
24 -l
25 --line
26 Reverse the order of the lines of the file, instead of
27 characters.
28
29
30 OPERANDS
31 The following operands are supported:
32
33 file
34 Specifies the name of the file to use as input.
35
36 If file is not specified, or if file is a -, rev copies from
37 standard input starting at the current offset.
38
39
40 EXIT STATUS
41 The following exit values are returned:
42
43 0
44 All files copied successfully.
45
46
47 >0
48 One or more files did not copy.
49
50
51 ATTRIBUTES
52 See attributes(5) for descriptions of the following attributes:
53
54
55
56
57 +--------------------+-----------------+
58 | ATTRIBUTE TYPE | ATTRIBUTE VALUE |
59 +--------------------+-----------------+
60 |CSI | Enabled |
61 +--------------------+-----------------+
62 |Interface Stability | Committed |
63 +--------------------+-----------------+
64
65 SEE ALSO
66 cat(1), ksh93(1), tail(1), attributes(5)
67
68
69
70 August 11, 2009 REV(1)
|
1 REV(1) User Commands REV(1)
2
3 NAME
4 rev - reverse the characters or lines of one or more files
5
6 SYNOPSIS
7 rev [-l] [file]...
8
9 DESCRIPTION
10 OPTIONS
11 rev copies one or more files to standard output, reversing the order of
12 characters on every line of the file, or reversing the order of lines of
13 the file if -l is specified. The following options are supported:
14
15 -l, --line Reverse the order of the lines of the file, instead of
16 characters.
17
18 OPERANDS
19 The following operands are supported:
20
21 file Specifies the name of the file to use as input.
22
23 If file is not specified or is -, rev copies from standard
24 input starting at the current offset.
25
26 EXIT STATUS
27 The following exit values are returned:
28
29 0 All files copied successfully.
30
31 >0 One or more files did not copy.
32
33 INTERFACE STABILITY
34 Committed.
35
36 SEE ALSO
37 cat(1), ksh93(1), tail(1), attributes(5)
38
39 illumos February 9, 2021 illumos
|