1rev(1)                           User Commands                          rev(1)
2
3
4

NAME

6       rev - reverse the characters or lines of one or more files
7

SYNOPSIS

9       /usr/bin/rev [-l] [file...]
10
11
12   ksh93
13       rev [-l] [file...]
14
15

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

OPTIONS

22       The following options are supported:
23
24       -l        Reverse  the order of the lines of the file, instead of char‐
25       --line    acters.
26
27

OPERANDS

29       The following operands are supported:
30
31       file    Specifies the name of the file to use as input.
32
33               If file is not specified, or if file is a -,  rev  copies  from
34               standard input starting at the current offset.
35
36

EXIT STATUS

38       The following exit values are returned:
39
40       0     All files copied successfully.
41
42
43       >0    One or more files did not copy.
44
45

ATTRIBUTES

47       See attributes(5) for descriptions of the following attributes:
48
49
50
51
52       ┌─────────────────────────────┬─────────────────────────────┐
53       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
54       ├─────────────────────────────┼─────────────────────────────┤
55       │Availability                 │SUNWcsu                      │
56       ├─────────────────────────────┼─────────────────────────────┤
57       │CSI                          │Enabled                      │
58       ├─────────────────────────────┼─────────────────────────────┤
59       │Interface Stability          │Committed                    │
60       └─────────────────────────────┴─────────────────────────────┘
61

SEE ALSO

63       cat(1), ksh93(1), tail(1), attributes(5)
64
65
66
67SunOS 5.11                        11 Aug 2009                           rev(1)
Impressum