OpenBSD manual page server

Manual Page Search Parameters
REV(1) General Commands Manual REV(1)

revreverse lines of a file

rev [file ...]

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.

The character encoding locale(1). It decides which byte sequences form characters. If unset or set to "C", "POSIX", or an unsupported value, the order of individual bytes is reversed.

cat(1), cut(1)

October 28, 2016 OpenBSD-current