line length

Jonathan I. Kamens jik at athena.mit.edu
Mon May 8 11:20:55 AEST 1989


In article <160 at ohsu-hcx.UUCP> mkb at ohsu-hcx.UUCP (Marilyn Bushway) writes:
>If I have output of 132 characters and I want it to be 80 characters
>is there a unix command to change the line length???

See the man page for fold.  By default it wraps at 80 columns, so you
could just do

	fold <filename>

to wrap a file, or

	<program name> | fold

to wrap the output of a program.

Jonathan Kamens			              USnail:
MIT Project Athena				410 Memorial Drive, No. 223F
jik at Athena.MIT.EDU				Cambridge, MA 02139-4318
Office: 617-253-4261			      Home: 617-225-8218



More information about the Comp.unix.questions mailing list