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 8.1. Windows Server 2012 R2. Windows 10. Windows Server 2016. Windows Server 2019. Windows 11. Windows Server 2022. 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.4 Documentation Build 39.