tail head cat sleep
QR code linking to this page

Manual Pages  — REV

NAME

rev – reverse lines of a file

CONTENTS

SYNOPSIS


rev [file ...]

DESCRIPTION

The rev utility copies the specified files to the standard output, reversing the order of characters in every line. If no files are specified, the standard input is read.

EXAMPLES

Reverse the text from stdin:
$ echo -e "reverse \t these\ntwo lines" | rev
eseht    esrever
senil owt

REV (1) June 27, 2020

tail head cat sleep
QR code linking to this page


Please direct any comments about this manual page service to Ben Bullock. Privacy policy.

UNIX has been evolving feverishly for close to 30 years, sort of like bacteria in a cesspool — only not as attractive
— John Levine, "Unix for Dummies"