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.

"I liken starting one's computing career with Unix, say as an undergraduate, to being born in East Africa. It is intolerably hot, your body is covered with lice and flies, you are malnourished and you suffer from numerous curable diseases. But, as far as young East Africans can tell, this is simply the natural condition and they live within it. By the time they find out differently, it is too late. They already think that the writing of shell scripts is a natural act."
— Ken Pier, Xerox PARC