mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 04:43:53 +00:00
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:
parent
f4b792fa67
commit
fe5bc3e6af
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=362677
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue