File:  [Plan 9 NeXT] / lucent / sys / man / 1 / fmt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 18:01:01 2018 UTC (8 years, 1 month ago) by root
Branches: lucent, MAIN
CVS tags: plan9, HEAD
Plan 9 NeXT

.TH FMT 1
.SH NAME
fmt \- ultra-simple text formatter
.SH SYNOPSIS
.B fmt
[
.I option ...
]
[
.I file ...
]
.SH DESCRIPTION
.I Fmt
copies the given
.I files
(standard input by default)
to its standard output, filling and indenting lines.
The options are
.TP
.BI -l " n
Output line length is
.IR n ,
including indent (default 70).
.TP
.BI -i " n
Indent
.I n
spaces (default 0).
.TP
.BI -j
Don't join input lines, simply split them where necessary.
.PP
Empty lines and initial white space in input lines are preserved.
Empty lines are inserted between input files.
.PP
.I Fmt
is idempotent: it leaves already formatted text unchanged.
.SH SOURCE
.B /sys/src/cmd/fmt.c
.SH BUGS
Words longer than 256 characters are split.

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.