fold.1 (644B)
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 POSIX.1-2013. 36 .Pp 37 The 38 .Op Fl Ns Ar num 39 syntax is an extension to that specification.