summaryrefslogtreecommitdiff
path: root/Base/usr
diff options
context:
space:
mode:
authorMango0x45 <thomasvoss@live.com>2021-05-01 12:39:14 +0200
committerLinus Groh <mail@linusgroh.de>2021-05-01 14:15:30 +0200
commit16359429519d38198d6452d3daff4677fc295433 (patch)
treefbb4dd54c267ef4867ee21a20f8f96882e5a92c4 /Base/usr
parent10fc9231d55b5bdb444eef2d7e233917d0b554ce (diff)
downloadserenity-16359429519d38198d6452d3daff4677fc295433.zip
Man: Add a manpage for rev(1)
Diffstat (limited to 'Base/usr')
-rw-r--r--Base/usr/share/man/man1/rev.md41
1 files changed, 41 insertions, 0 deletions
diff --git a/Base/usr/share/man/man1/rev.md b/Base/usr/share/man/man1/rev.md
new file mode 100644
index 0000000000..c172a54c11
--- /dev/null
+++ b/Base/usr/share/man/man1/rev.md
@@ -0,0 +1,41 @@
+## Name
+
+rev - reverse lines
+
+## Synopsis
+
+```*sh
+$ rev [files...]
+```
+
+## Description
+
+`rev` reads the specified files line by line, and prints them to standard
+output with each line being reversed characterwise. If no files are specifed,
+then `rev` will read from standard input.
+
+## Examples
+
+To print two files 'foo' and 'bar' in reverse:
+```sh
+$ cat foo bar
+foo 1
+foo 2
+bar 1
+bar 2
+$ rev foo bar
+1 oof
+2 oof
+1 rab
+2 rab
+```
+
+To list files with their names in reverse:
+```sh
+$ ls
+foo
+bar
+$ ls | rev
+oof
+rab
+```