cmd:fold 

Usage 

fold -s -w 132 bigfile | lp

Comments 

Use fmt instead for more advanced controls!

Info 

The fold utility is a filter that will fold lines  from  its
input  files,  breaking the lines to have a maximum of width
column positions (or bytes, if the -b option is  specified).

Help 

-b, --bytes         count bytes rather than columns
-s, --spaces        break at spaces
-w, --width=WIDTH   use WIDTH columns instead of 80
 `-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.

Comments 

fold and cut(1) can be used to  create  text  files  out  of
files with arbitrary line lengths.  fold should be used when
the contents of long lines need to be kept contiguous.   cut
should  be  used when the number of lines (or records) needs
to remain constant.
echo "\
Updated ${PKG_INSTALL_ROOT}/etc/inet/services with new netbios and swat \
names and made backup of original ${PKG_INSTALL_ROOT}/etc/inet/services \
as ${PKG_INSTALL_ROOT}/etc/inet/services:presamba." | fold -s -w 60 | \
while read line; do
        echo postinstall: $line
done

documented on: 2002.12.10