fmt - simple optimal text formatter.
Format a multi-line text file in just one:
fmt file.txt
Specify the maximum line size:
fmt -w 25 file.txt
Add indentation in the paragraph:
fmt -t file.txt
Automatically split very long lines:
fmt -s file.txt
Format text using one space between words and two between sentences:
fmt -u file.txt
Display help and exit:
fmt --help
Display version information and exit:
fmt --version