fmt [options] [file]Arguments explained
- -w sets output width.
- -u uses uniform spacing.
Common examples
fmt -w 72 notes.txtPrints reflowed text.
fmt draft.txt > draft-wrapped.txtWrites wrapped output to a new file.
| Field | Details |
|---|---|
| Command | fmt |
| Category | Text Processing |
| Primary use | Reformats paragraphs of text. |
| Syntax | fmt [options] [file] |