rev

reverse character order of input lines 

Command


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.


PORTABILITY

Windows 7. Windows Server 2008 R2. Windows 8. Windows Server 2012. Windows 10. Windows Server 2016. 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.1 Documentation Build 15.