rev1
Reverse lines characterwise
Usage
rev [option]
[file ...]
Overview
The rev utility copies the specified files to standard output, reversing the order of characters in every line. If no files are specified, standard input is read.
This utility is a line-oriented tool and it uses in-memory allocated buffer for a whole wide-char line. If the input file is huge and without line breaks then allocating the memory for the file may be unsuccessful.
Options
-
-0, --zero -
Zero termination. Use the byte '\0' as line separator.
-
-h, --help -
Display help text and exit.
-
-V, --version -
Display version and exit.
Releases
15 releases since Debian 2.1 (Slink); the text changed 10 times.
--help since Debian 7 (Wheezy);
--version since Debian 7 (Wheezy);
--zero since Debian 13 (Trixie);
-0 since Debian 13 (Trixie);
-V since Debian 7 (Wheezy);
-h since Debian 7 (Wheezy).