REFORMAT(1) reformat REFORMAT(1)

reformat - tool to simple format plain ascii texts

reformat [-h] [-j] [-l margin] [-p] [-w width]

reformat is a simple tool to reformat plain texts. reformat reads from stdin and writes to stdout.

Available options are:

prints usage information
switch justify mode: Each line of a paragraph will have the same width (see -w option). To reach this, spaces (' ') will be added between words. Default: disabled
Sets the left margin to left-margin. The margin is produced by left-margin spaces (' '), no tabs will be used. Default: 0
Accept lines beginning with a whitespace as usual paragraphs, too.
Sets the paragraph width to width. No reformatted line will be longer than width (plus defined margins) then. Default: 72

Planned features are:

Reads text from foo, reformats and writes to bar.
Nice justified, centered text from file foo on an 80x25 terminal.

fold(1)

(C) Stephan Beyer <s-beyer@gmx.net>, 2003-2004, GPL

2024-02-17 reformat 20040319