fmt
all
Reformat a text file by joining its paragraphs and limiting the line width to a number of characters (75 by default).
More info →Options (3)
-w, --widthbooleanReformat a file producing output lines of (at most) `n` characters
Example:
fmt {{[-w|--width]}} {{n}} {{path/to/file}}-s, --split-onlybooleanReformat a file without joining lines shorter than the given width together
Example:
fmt {{[-s|--split-only]}} {{path/to/file}}-u, --uniform-spacingbooleanReformat a file with uniform spacing (1 space between words and 2 spaces between paragraphs)
Example:
fmt {{[-u|--uniform-spacing]}} {{path/to/file}}made by @shridhargupta | data from tldr-pages