fmt(1): Add EXAMPLES section
Very small EXAMPLES section. While here, remove reference to nroff(1). Approved by: manpages (bcr@) Differential Revision: https://reviews.freebsd.org/D26947
This commit is contained in:
parent
538d212d13
commit
22d3f87c80
@ -30,7 +30,7 @@
|
|||||||
.\"
|
.\"
|
||||||
.\" Modified by Gareth McCaughan to describe the new version of `fmt'
|
.\" Modified by Gareth McCaughan to describe the new version of `fmt'
|
||||||
.\" rather than the old one.
|
.\" rather than the old one.
|
||||||
.Dd December 1, 2017
|
.Dd October 29, 2020
|
||||||
.Dt FMT 1
|
.Dt FMT 1
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -89,10 +89,6 @@ Try to format mail header lines contained in the input sensibly.
|
|||||||
Format lines beginning with a
|
Format lines beginning with a
|
||||||
.Ql \&.
|
.Ql \&.
|
||||||
(dot) character.
|
(dot) character.
|
||||||
Normally,
|
|
||||||
.Nm
|
|
||||||
does not fill these lines, for compatibility with
|
|
||||||
.Xr nroff 1 .
|
|
||||||
.It Fl p
|
.It Fl p
|
||||||
Allow indented paragraphs.
|
Allow indented paragraphs.
|
||||||
Without the
|
Without the
|
||||||
@ -159,10 +155,23 @@ environment variables affect the execution of
|
|||||||
.Nm
|
.Nm
|
||||||
as described in
|
as described in
|
||||||
.Xr environ 7 .
|
.Xr environ 7 .
|
||||||
|
.Sh EXAMPLES
|
||||||
|
Center the text in standard input:
|
||||||
|
.Bd -literal -offset indent
|
||||||
|
$ echo -e 'The merit of all things\enlies\enin their difficulty' | fmt -c
|
||||||
|
The merit of all things
|
||||||
|
lies
|
||||||
|
in their difficulty
|
||||||
|
.Ed
|
||||||
|
.Pp
|
||||||
|
Format the text in standard input collapsing spaces:
|
||||||
|
.Bd -literal -offset indent
|
||||||
|
$ echo -e 'Multiple spaces will be collapsed' | fmt -s
|
||||||
|
Multiple spaces will be collapsed
|
||||||
|
.Ed
|
||||||
.Sh SEE ALSO
|
.Sh SEE ALSO
|
||||||
.Xr fold 1 ,
|
.Xr fold 1 ,
|
||||||
.Xr mail 1 ,
|
.Xr mail 1
|
||||||
.Xr nroff 1
|
|
||||||
.Sh HISTORY
|
.Sh HISTORY
|
||||||
The
|
The
|
||||||
.Nm
|
.Nm
|
||||||
|
Loading…
x
Reference in New Issue
Block a user