From 1335d459dc2a71712f64ff01db1fb98bfc200544 Mon Sep 17 00:00:00 2001 From: fernape Date: Sat, 27 Jun 2020 11:19:18 +0000 Subject: [PATCH] rev(1): Add EXAMPLES section Very simple example. Approved by: imp, 0mp, manpages(bcr) Differential Revision: https://reviews.freebsd.org/D25468 --- usr.bin/rev/rev.1 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/usr.bin/rev/rev.1 b/usr.bin/rev/rev.1 index 298ce0071d5d..474db56a500d 100644 --- a/usr.bin/rev/rev.1 +++ b/usr.bin/rev/rev.1 @@ -28,7 +28,7 @@ .\" @(#)rev.1 8.1 (Berkeley) 6/9/93 .\" $FreeBSD$ .\" -.Dd June 9, 1993 +.Dd June 27, 2020 .Dt REV 1 .Os .Sh NAME @@ -43,3 +43,10 @@ The 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. +.Sh EXAMPLES +Reverse the text from stdin: +.Bd -literal -offset indent +$ echo -e "reverse \et these\entwo lines" | rev +eseht esrever +senil owt +.Ed