rev(1): Add EXAMPLES section

Very simple example.

Approved by:	imp, 0mp, manpages(bcr)
Differential Revision:	https://reviews.freebsd.org/D25468
This commit is contained in:
fernape 2020-06-27 11:19:18 +00:00
parent 9bd003b50c
commit 1335d459dc

View File

@ -28,7 +28,7 @@
.\" @(#)rev.1 8.1 (Berkeley) 6/9/93 .\" @(#)rev.1 8.1 (Berkeley) 6/9/93
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd June 9, 1993 .Dd June 27, 2020
.Dt REV 1 .Dt REV 1
.Os .Os
.Sh NAME .Sh NAME
@ -43,3 +43,10 @@ The
utility copies the specified files to the standard output, reversing the utility copies the specified files to the standard output, reversing the
order of characters in every line. order of characters in every line.
If no files are specified, the standard input is read. 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