Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F175684635
D26948.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
831 B
Referenced Files
None
Subscribers
None
D26948.id.diff
View Options
Index: head/usr.bin/fold/fold.1
===================================================================
--- head/usr.bin/fold/fold.1
+++ head/usr.bin/fold/fold.1
@@ -28,7 +28,7 @@
.\" @(#)fold.1 8.1 (Berkeley) 6/6/93
.\" $FreeBSD$
.\"
-.Dd June 6, 2015
+.Dd October 29, 2020
.Dt FOLD 1
.Os
.Sh NAME
@@ -76,6 +76,22 @@
.Nm
as described in
.Xr environ 7 .
+.Sh EXAMPLES
+Fold text in standard input with a width of 20 columns:
+.Bd -literal -offset indent
+$ echo "I am smart enough to know that I am dumb" | fold -w 15
+I am smart enou
+gh to know that
+ I am dumb
+.Ed
+.Pp
+Same as above but breaking lines after the last blank character:
+.Bd -literal -offset indent
+$ echo "I am smart enough to know that I am dumb" | fold -s -w 15
+I am smart
+enough to know
+that I am dumb
+.Ed
.Sh SEE ALSO
.Xr expand 1 ,
.Xr fmt 1
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Oct 13, 12:38 PM (5 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40750230
Default Alt Text
D26948.id.diff (831 B)
Attached To
Mode
D26948: fold(1): Add EXAMPLES section
Attached
Detach File
Event Timeline
Log In to Comment