fmt(1)
π fmt(1) β the general commands manual page, but make it cute π
okay bestie, pull up a chair πͺ because this one is genuinely one of my faves. it's fmt, from the General Commands Manual section of your friendly neighbourhood uutils coreutils β she reformats your messy little paragraphs and sends them straight to stdout. no drama, no chaos, just vibes. β¨
πΈ NAME πΈ
fmt β Reformat paragraphs from input (or standard input) to stdout. π
π¦ SYNOPSIS π¦
fmt [-c|--crown-margin] [-t|--tagged-paragraph] [-m|--preserve-headers]
[-s|--split-only] [-u|--uniform-spacing] [-p|--prefix]
[-P|--skip-prefix] [-x|--exact-prefix] [-X|--exact-skip-prefix]
[-w|--width] [-g|--goal] [-q|--quick] [-T|--tab-width] [-h|--help]
[-V|--version] [FILES]
like, that's the whole girl right there. take a sec. π
π DESCRIPTION π
Reformat paragraphs from input (or standard input) to stdout. π
that's it. that's the job. she takes your paragraphs β from a file or from stdin β and rewrites them all pretty and reflowed into stdout. no cap.
β¨ OPTIONS β¨
so many flags, so little time. every single one of them, coming right up:
-c,--crown-marginβ the first and second line of a paragraph are allowed to have different indentations, and if they do, the first line's indentation gets preserved and every line after that matches the second line's indentation. crown-margin said "I contain multitudes" π-t,--tagged-paragraphβ like-c, except the first and second line of a paragraph must have different indentation, or they get treated as separate paragraphs. she's strict like that. π¨-m,--preserve-headersβ she'll attempt to detect and preserve mail headers in the input. be careful when combining this flag with-p. β οΈ-s,--split-onlyβ split lines only. do not reflow. simple, clean, minimal. π§-u,--uniform-spacingβ insert exactly one space between words, and two between sentences. sentence breaks in the input get detected as[?!.]followed by two spaces or a newline; other punctuation is not interpreted as a sentence break. iykyk. π-p,--prefix <PREFIX>β reformat only lines beginning withPREFIX, then reattachPREFIXto the reformatted lines. unless-xis specified, leading whitespace gets ignored when matchingPREFIX. π-P,--skip-prefix <PSKIP>β do not reformat lines beginning withPSKIP. unless-Xis specified, leading whitespace gets ignored when matchingPSKIP. π-x,--exact-prefixβPREFIXmust match at the beginning of the line with no preceding whitespace. exact girl, no negotiating. π-X,--exact-skip-prefixβPSKIPmust match at the beginning of the line with no preceding whitespace. same energy, different flag. π-w,--width <WIDTH>β fill output lines up to a maximum ofWIDTHcolumns, default 75. this can be specified as a negative number in the first argument. π-g,--goal <GOAL>β goal width, default of 93% of WIDTH. must be less than or equal toWIDTH. like, she has dreams but she stays realistic. β¨-q,--quickβ break lines more quickly, at the expense of a potentially more ragged appearance. she's rushing, she's got places to be. πββοΈ-T,--tab-width <TABWIDTH>β treat tabs asTABWIDTHspaces for determining line length, default 8. note that this is used only for calculating line lengths; tabs are preserved in the output. π«Ά-h,--helpβ Print help. π-V,--versionβ Print version. π·οΈ[FILES]β the files, bestie. the actual things you want her to read. π
π VERSION π
v(uutils coreutils) 0.7.0
okay that's the whole page!! π«Ά you now know fmt better than most people know their own wifi password. go forth and reflow, bestie. π
reminder: every default, every detection rule, every "must" and "do not" up there is load-bearing. don't skip them, don't guess at them, just use them. π₯
and that's a wrap on this little fmt (uutils coreutils) 0.7.0 situation β uutils coreutils 0.7.0, babes, she's iconic and she's free πβ¨ slay, mwah, bye bestie ππ¦π
π¦ where this page comes from
- epel 10: rust-coreutils-devel 0.7.0-10.el10_3 Β· MIT
- epel 10: uutils-coreutils 0.7.0-10.el10_3 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT)
- fedora 43: rust-coreutils-devel 0.7.0-12.fc43 Β· MIT
- fedora 43: uutils-coreutils 0.7.0-12.fc43 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT)
- fedora 44: rust-coreutils-devel 0.7.0-4.fc44 Β· MIT
- fedora 44: uutils-coreutils 0.7.0-4.fc44 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms