DEROFF(1)
πΈ NAME πΈ
Okay bestie, welcome to deroff(1) β straight out of the User Contributed Perl Documentation corner of the universe. It's a little text-cleanup icon whose whole thing is literally strip troff, eqn and tbl sequences from text. No cap, she's here to declutter your weird markup soup. π
β¨ SYNOPSIS β¨
deroff [ -w ] [ file ] ...
π DESCRIPTION π
So here's the tea, fr fr: deroff reads the given files β or standard input if you don't hand it any files β and strips all troff control lines, comments, and escape sequences. Not only that, but all constructs for eqn (equation macros) and tbl (table macros) are deleted. It's giving "cleanup crew, but make it text." π§Ήβ¨
The troff .so and .nx commands are followed to include other files β and yes, only once for each file. Lowkey important, iykyk.
-wβ this flag causesderoffto print only words, one per line. Words are considered to start with a letter and contain letters, digits or apostrophes β but no trailing apostrophe, bestie. Also, single character words are ignored. Periodt. π
π¦ SEE ALSO π¦
If you wanna go deeper, the manual points you to the whole squad:
troffeqntbl
That's the see-also lineup, no extras, no surprises. π
π BUGS π
Not me quoting the manual, but it says deroff is a simpleton and does not attempt to interpret troff constructs. So likeβ¦ she's not doing math on your macros, she's just vibing and stripping. ππ
That's the whole page, bestie π«Ά β signed by perl v5.42.2, dated 2026-02-15, and filed under DEROFF(1). Mwah πβ¨
π¦ 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