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