diff options
| author | Fernando ApesteguĂa <fernape@FreeBSD.org> | 2020-10-29 18:39:04 +0000 |
|---|---|---|
| committer | Fernando ApesteguĂa <fernape@FreeBSD.org> | 2020-10-29 18:39:04 +0000 |
| commit | b139a8fa79c1e49104b892c02f821275cd6d8423 (patch) | |
| tree | aff9b7455f8956a9141abf3a8a7e895f25a16e6a /usr.bin/fold | |
| parent | 22d3f87c80e7564c450a5fff0a08ea9711a6600d (diff) | |
Notes
Diffstat (limited to 'usr.bin/fold')
| -rw-r--r-- | usr.bin/fold/fold.1 | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/usr.bin/fold/fold.1 b/usr.bin/fold/fold.1 index c4e75b642be2..78dc1848db95 100644 --- a/usr.bin/fold/fold.1 +++ b/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 @@ environment variables affect the execution of .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 |
