fmt Command Examples

Reformat a text file by joining its paragraphs and limiting the line width to a number of characters (75 by default). More information: https://www.gnu.org/software/coreutils/manual/html_node/fmt-invocation.html.

fmt {{path/to/file}}

fmt {{[-w|--width]}} {{n}} {{path/to/file}}

fmt {{[-s|--split-only]}} {{path/to/file}}

fmt {{[-u|--uniform-spacing]}} {{path/to/file}}