REV(1x) 1x REV(1x)

This manual page is part of Cross-Unix Documentation which is an attempt to provide documentation of similarities and (noteworthy) differencies between Unix-like systems. To be used as an addition to the POSIX standard.

revreverse lines characterwise

rev [file ...]

rev copies the specified files to the standard output, with the characters of each line being reversed. If no files are specified, standard input is read.

$ cat example
example.org
example.com
$ rev example
gro.elpmaxe
moc.elpmaxe
$ rev example | rev
example.org
example.com

Haelwenn (lanodan) Monnier <contact+c-u-d@hacktivis.me>

2023-03-15 Linux 6.12.21-gentoo-x86_64