FMT(1)
π FMT(1) β simple text formatter π
okay bestie, welcome to the FMT(1) manual page from the User Contributed Perl Documentation collection. Pull up a chair, weβre formatting paragraphs. π
πΈ NAME πΈ
fmt β simple text formatter. Thatβs literally it, and sheβs iconic for it. β¨
π¦ SYNOPSIS π¦
fmt [-w WIDTH] [file...]
Short, sweet, and ready to serve. π
π DESCRIPTION π
So picture this: fmt takes paragraphs of text from the input files β or from standard input if you didnβt hand it any files β and reformats those paragraphs, then writes the glow-up to standard output. No cap. π
The option -WIDTH is an abbreviated form of -w DIGITS. Yep, thatβs the whole vibe. π«Ά
β¨ OPTIONS β¨
-w DIGITSβ maximum line width, bestie. This option can be specified in the shortened version,-DIGITS. The default is75. π
π EXIT STATUS π
The fmt utility exits 0 on success, and >0 to indicate an error. Slay when itβs 0; side-eye when itβs >0. π
π BUGS π
Only ASCII text is handled correctly. So if your text is serving multilingual chaos, fmt is lowkey not the one for that. Periodt. π
π AUTHORS π
Dmitri Tikhonov β yes, the author. She said respect the name. π
This code is freely modifiable and freely redistributable under Perlβs Artistic License. So go off, remix it, share it, and respect the license. π«Ά
π¦ Thatβs the wholeFMT(1)manual, bestie β footer tea:perl v5.42.2, dated2026-02-15. Now go format those paragraphs and absolutely ate. π β¨
π¦ where this page comes from
- alpine 3.24: perl-power-tools-doc 1.053-r1 Β· GPL-2.0-or-later AND Artistic-1.0-Perl AND Artistic-2.0 AND BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms