sbase

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

fold.1 (696B)


      1 .Dd 2015-10-08
      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. The default is 80.
     32 .El
     33 .Sh STANDARDS
     34 The
     35 .Nm
     36 utility is compliant with the
     37 .St -p1003.1-2013
     38 specification.
     39 .Pp
     40 The
     41 .Op Fl Ns Ar num
     42 syntax is an extension to that specification.