FMT(1)

πŸ“¦ version 1.053, in alpine 3.24

πŸ’… 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 is 75. πŸŽ€

πŸ’€ 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 whole FMT(1) manual, bestie β€” footer tea: perl v5.42.2, dated 2026-02-15. Now go format those paragraphs and absolutely ate. πŸ’…βœ¨
πŸ“¦ where this page comes from