Date: Thu, 29 Oct 2020 18:39:05 +0000 (UTC) From: =?UTF-8?Q?Fernando_Apestegu=c3=ada?= <fernape@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r367143 - head/usr.bin/fold Message-ID: <202010291839.09TId5WY040821@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: fernape (ports committer) Date: Thu Oct 29 18:39:04 2020 New Revision: 367143 URL: https://svnweb.freebsd.org/changeset/base/367143 Log: fold(1): Add EXAMPLES section A couple of examples covering -s and -w flags. Approved by: manpages (bcr@) Differential Revision: https://reviews.freebsd.org/D26948 Modified: head/usr.bin/fold/fold.1 Modified: head/usr.bin/fold/fold.1 ============================================================================== --- head/usr.bin/fold/fold.1 Thu Oct 29 18:37:20 2020 (r367142) +++ head/usr.bin/fold/fold.1 Thu Oct 29 18:39:04 2020 (r367143) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202010291839.09TId5WY040821>