fold: Wrap text to fit a specified width.

Wrap input lines to fit in specified width, writes each FILE (`-?
means standard input), or standard input if none are given, to standard output,
breaking long lines.
Syntax
fold [options]... [FILE]...

By default, `fold? breaks lines wider than 80 columns. The output
is split into as many lines as necessary.

`fold? counts screen columns by default; thus, a tab may count more
than one column, backspace decreases the column count, and carriage
return sets the column to zero.
Options

-b
--bytes
Count bytes rather than columns, so that tabs, backspaces, and
carriage returns are each counted as taking up one column, just
like other characters.

-s
--spaces
Break at word boundaries: the line is broken after the last blank
before the maximum line length. If the line contains no such
blanks, the line is broken at the maximum line length as usual.

-w WIDTH
--width=WIDTH
Use a maximum line length of WIDTH columns instead of 80.
"The general attitude seems to be that people should wear square
shoes, because squares are easier to design and manufacture than foot shaped
shoes. If the shoe industry has gone the way of the computer industry it would
now be running a $200-a-day course on how to walk, run and jump in square shoes."
- Alan
Kay
Tags
Comments
Write the first comment
Leave a trace
Name *
Email *
Website
Anti SPAM * Code (8 + 4) =
Leave me a comment *
 
All comments are subject to editorial review
Post being viewed right now
Item date: 19.07.2009
Views: 1935
Item date: 06.02.2009
Views: 1300
Item date: 19.07.2010
Views: 1220
Item date: 18.06.2009
Views: 2153
Item date: 14.05.2009
Views: 894
Item date: 26.09.2009
Views: 496
Item date: 23.08.2009
Views: 2163
Item date: 11.04.2009
Views: 1343
Item date: 12.04.2009
Views: 2237
Item date: 07.03.2009
Views: 1028