sbase

suckless unix tools
git clone git://git.suckless.org/sbase
Log | Files | Refs | README | LICENSE

fold.1 (701B)


      1 .Dd October 8, 2015
      2 .Dt FOLD 1
      3 .Os sbase
      4 .Sh NAME
      5 .Nm fold
      6 .Nd wrap lines to width
      7 .Sh SYNOPSIS
      8 .Nm
      9 .Op Fl bs
     10 .Op Fl w Ar num | Fl Ns Ar num
     11 .Op Ar file ...
     12 .Sh DESCRIPTION
     13 .Nm
     14 reads each
     15 .Ar file
     16 and prints its lines wrapped such that no line
     17 exceeds a certain width.
     18 If no file is given,
     19 .Nm
     20 reads from stdin.
     21 .Sh OPTIONS
     22 .Bl -tag -width Ds
     23 .It Fl b
     24 Count bytes rather than characters.
     25 .It Fl s
     26 If a line contains spaces, break
     27 at the last space within width.
     28 .It Fl w Ar num | Fl Ns Ar num
     29 Break at
     30 .Ar num
     31 characters.
     32 The default is 80.
     33 .El
     34 .Sh STANDARDS
     35 The
     36 .Nm
     37 utility is compliant with the
     38 .St -p1003.1-2013
     39 specification.
     40 .Pp
     41 The
     42 .Op Fl Ns Ar num
     43 syntax is an extension to that specification.