From 82a3f74f92d8daed3a1cef9cb4a89aca6ff20934 Mon Sep 17 00:00:00 2001 From: Sarah Listzwan <145295384+listsarah@users.noreply.github.com> Date: Thu, 10 Oct 2024 13:06:18 -0400 Subject: [PATCH] rev: update page (#13554) Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> --- pages/common/rev.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/pages/common/rev.md b/pages/common/rev.md index 63bfc2457..fdc5afed6 100644 --- a/pages/common/rev.md +++ b/pages/common/rev.md @@ -1,8 +1,12 @@ # rev -> Reverse a line of text. +> Reverse a line of text or a file. > More information: . +- Reverse text typed into terminal: + +`rev` + - Reverse the text string "hello": `echo "hello" | rev` @@ -10,3 +14,15 @@ - Reverse an entire file and print to `stdout`: `rev {{path/to/file}}` + +- Use '\0' as a line separator (zero termination): + +`rev -0 {{path/to/file}}` + +- Display help: + +`rev -h` + +- Display version: + +`rev -V`