1FMT(1) User Commands FMT(1)
2
3
4
6 fmt - simple optimal text formatter
7
9 fmt [-WIDTH] [OPTION]... [FILE]...
10
12 Reformat each paragraph in the FILE(s), writing to standard output.
13 The option -WIDTH is an abbreviated form of --width=DIGITS.
14
15 Mandatory arguments to long options are mandatory for short options
16 too.
17
18 -c, --crown-margin
19 preserve indentation of first two lines
20
21 -p, --prefix=STRING
22 reformat only lines beginning with STRING, reattaching the pre‐
23 fix to reformatted lines
24
25 -s, --split-only
26 split long lines, but do not refill
27
28 -t, --tagged-paragraph
29 indentation of first line different from second
30
31 -u, --uniform-spacing
32 one space between words, two after sentences
33
34 -w, --width=WIDTH
35 maximum line width (default of 75 columns)
36
37 -g, --goal=WIDTH
38 goal width (default of 93% of width)
39
40 --help display this help and exit
41
42 --version
43 output version information and exit
44
45 With no FILE, or when FILE is -, read standard input.
46
47 GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
48 Report fmt translation bugs to <http://translationproject.org/team/>
49
51 Written by Ross Paterson.
52
54 Copyright © 2013 Free Software Foundation, Inc. License GPLv3+: GNU
55 GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
56 This is free software: you are free to change and redistribute it.
57 There is NO WARRANTY, to the extent permitted by law.
58
60 The full documentation for fmt is maintained as a Texinfo manual. If
61 the info and fmt programs are properly installed at your site, the com‐
62 mand
63
64 info coreutils 'fmt invocation'
65
66 should give you access to the complete manual.
67
68
69
70GNU coreutils 8.22 October 2018 FMT(1)