Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148789954
D26947.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D26947.diff
View Options
Index: head/usr.bin/fmt/fmt.1
===================================================================
--- head/usr.bin/fmt/fmt.1
+++ head/usr.bin/fmt/fmt.1
@@ -30,7 +30,7 @@
.\"
.\" Modified by Gareth McCaughan to describe the new version of `fmt'
.\" rather than the old one.
-.Dd December 1, 2017
+.Dd October 29, 2020
.Dt FMT 1
.Os
.Sh NAME
@@ -89,10 +89,6 @@
Format lines beginning with a
.Ql \&.
(dot) character.
-Normally,
-.Nm
-does not fill these lines, for compatibility with
-.Xr nroff 1 .
.It Fl p
Allow indented paragraphs.
Without the
@@ -159,10 +155,23 @@
.Nm
as described in
.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
.Xr fold 1 ,
-.Xr mail 1 ,
-.Xr nroff 1
+.Xr mail 1
.Sh HISTORY
The
.Nm
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 21, 5:54 AM (7 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30064865
Default Alt Text
D26947.diff (1 KB)
Attached To
Mode
D26947: fmt(1): Add EXAMPLES section
Attached
Detach File
Event Timeline
Log In to Comment