man > fmt(1)

```html

FMT(1) User Commands FMT(1)

🏷️ NAME

fmt - simple optimal text formatter

🚀 Quick Reference

Use CaseCommandDescription
Format a filefmt file.txtReformat all paragraphs in the file
Set line width to 80fmt -w 80 file.txtMaximum line width of 80 columns
Preserve first two lines indentationfmt -c file.txtCrown‑margin mode (keeps first two lines indented)
Reformat only lines with a prefixfmt -p ">" file.txtOnly process lines starting with >
Split long lines without refillingfmt -s file.txtSplit only, no refilling of short lines

📋 SYNOPSIS

fmt [-WIDTH] [OPTION]... [FILE]...

📖 DESCRIPTION

Reformat each paragraph in the FILE(s), writing to standard output. The option -WIDTH is an abbreviated form of --width=DIGITS.

With no FILE, or when FILE is -, read standard input.

Mandatory arguments to long options are mandatory for short options too.

⚙️ -c, --crown-margin

Preserve indentation of first two lines

⚙️ -p, --prefix=STRING

Reformat only lines beginning with STRING, reattaching the prefix to reformatted lines

⚙️ -s, --split-only

Split long lines, but do not refill

⚙️ -t, --tagged-paragraph

Indentation of first line different from second

⚙️ -u, --uniform-spacing

One space between words, two after sentences

⚙️ -w, --width=WIDTH

Maximum line width (default of 75 columns)

⚙️ -g, --goal=WIDTH

Goal width (default of 93% of width)

⚙️ --help

Display this help and exit

⚙️ --version

Output version information and exit

✍️ AUTHOR

Written by Ross Paterson.

🐛 REPORTING BUGS

GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
Report any translation bugs to <https://translationproject.org/team/>

©️ COPYRIGHT

Copyright © 2020 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

🔗 SEE ALSO

Full documentation <https://www.gnu.org/software/coreutils/fmt>
or available locally via: info '(coreutils) fmt invocation'


GNU coreutils 8.32 January 2026 FMT(1)

```
fmt(1)
🏷️ NAME 🚀 Quick Reference 📋 SYNOPSIS 📖 DESCRIPTION
⚙️ -c, --crown-margin ⚙️ -p, --prefix=STRING ⚙️ -s, --split-only ⚙️ -t, --tagged-paragraph ⚙️ -u, --uniform-spacing ⚙️ -w, --width=WIDTH ⚙️ -g, --goal=WIDTH ⚙️ --help ⚙️ --version
✍️ AUTHOR 🐛 REPORTING BUGS ©️ COPYRIGHT 🔗 SEE ALSO

Generated by phpman v4.10.0-16-g1a0e228 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-22 19:26 @216.73.217.0
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!