MPE/iX Shell and Utilities Reference Manual, Vol 2

rev(1) MPE/iX Shell and Utilities rev(1)
NAME
rev — reverse character order of input lines
SYNOPSIS
rev [file ...]
DESCRIPTION
rev processes each line read from each input file, or from the standard input when no file is
specified. Output consists of each line with the characters in reverse order except that the
newline character (if present) remains at the end of each output line.
EXAMPLES
One possible use of rev is to sort a dictionary by suffixes, as in:
rev dictionary | sort | rev
DIAGNOSTICS
Possible exit status values are:
0 Successful completion.
1 Failure because rev cannot open the input file.
Messages
Message: filename: system error
Cause: See syserror(3).
Action: See syserror(3).
PORTABILITY
Often found on
UNIX systems.
MPE/iX NOTES
For information on how the current MPE/iX implementation may affect the operation of this
utility, see Appendix A, MPE/iX Implementation Considerations.
SEE ALSO
sort(1)
Commands and Utilities 1-487