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:
PORTABILITY
Windows 10. Windows Server 2016. Windows Server 2019. Windows 11. Windows Server 2022. Windows Server 2025. Often found on UNIX systems.
AVAILABILITY
PTC MKS Toolkit for Power Users
PTC MKS Toolkit for System Administrators
PTC MKS Toolkit for Developers
PTC MKS Toolkit for Interoperability
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
- Commands:
- sort
PTC MKS Toolkit 10.5 Documentation Build 40.