FMT(1) FMT(1)
NAME
fmt - ultra-simple text formatter
SYNOPSIS
fmt [ option ... ] [ file ... ]
DESCRIPTION
Fmt copies the given files (standard input by default) to
its standard output, filling and indenting lines. The
options are
-l n Output line length is n, including indent (default 70).
-w n A synonym for -l.
-i n Indent n spaces (default 0).
-j Don't join input lines, simply split them where neces-
sary.
Empty lines and initial white space in input lines are pre-
served. Empty lines are inserted between input files.
Fmt is idempotent: it leaves already formatted text
unchanged.
SOURCE
/sys/src/cmd/fmt.c
Page 1 Plan 9 (printed 3/14/26)