DEMANDOC(1)
β¨ DEMANDOC(1) β¨
ok so bestie, welcome to the demandoc page π this is a General Commands Manual situation, and honestly? she's giving "quietly iconic utility." let's get into it π
πΈ NAME πΈ
demandoc β emit only text of UNIX manuals
like. just the words. the vibes without the markup, yk? π
π¦ SYNOPSIS π¦
demandoc [-w] [file ...]
that's it. that's the whole shape of her. short, sweet, slay β¨
π DESCRIPTION π
So the demandoc utility does one thing and does it beautifully: it emits only the text portions of well-formed mdoc(7) and man(7) Unix manual files. no macro noise, no escape drama, just text π«Ά
By default, demandoc parses standard input and outputs only text nodes, preserving line and column position. Escape sequences are omitted from the output. periodt.
Its arguments are as follows:
-wβ output a word list. This outputs each word of text on its own line. A "word", in this case, refers to whitespace-delimited terms beginning with at least two letters and not consisting of any escape sequences. Words have their leading and trailing punctuation (double-quotes, sentence punctuation, etc.) stripped. so like, she's doing the tidying for you π§Ήβ¨- file ... β the input files.
If a document is not well-formed, it is skipped. no notes, no meltdown, she just moves on π
Also, a fun lil lore drop: the -i, -k, -m, and -p flags are silently discarded β they exist purely for calling compatibility with the historical deroff. so if you pass them, nothing happens. ghost flags. spectral. π»
π₯ EXIT STATUS π₯
The demandoc utility exits with one of the following values:
0β No errors occurred. bestie is thriving π6β An operating system error occurred, for example memory exhaustion or an error accessing input files. Such errors causedemandocto exit at once, possibly in the middle of parsing or formatting a file. The output databases are corrupt and should be removed .
β οΈ okay that last one is not a vibe β corrupt output databases, remove them, no cap. if you see exit 6, it's giving chaos π
π EXAMPLES π
The traditional usage of demandoc is for spell-checking manuals on BSD. This is accomplished as follows (assuming British spelling):
$ demandoc -w file.1 | spell -b
look at that pipeline. main character energy fr fr π
β SEE ALSO β
π§ HISTORY π§
demandoc replaces the historical deroff utility for handling modern man(7) and mdoc(7) documents. out with the old, in with the glow-up π
β¨
π AUTHORS π
The demandoc utility was written by Kristaps Dzonsons <kristaps@bsd.lv>. thank you king π«Ά
and that's the page!! this lil beauty came to you from Debian, dated September 12, 2014 β yes she's vintage, yes she still ate πππ¦
okay bye bestie, go spell-check something β¨
π¦ where this page comes from
- alpine 3.22: mandoc-doc 1.14.6-r13 Β· ISC
- alpine 3.23: mandoc-doc 1.14.6-r14 Β· ISC
- alpine 3.24: mandoc-doc 1.14.6-r15 Β· ISC
- arch rolling: mandoc 1.14.6-5 Β· ISC
- debian trixie: mandoc 1.14.6-4 Β· ISC
- epel 10: mandoc 1.14.6-11.el10_1 Β· ISC AND BSD-2-Clause AND BSD-3-Clause
- epel 9: mandoc 1.14.6-2.el9 Β· ISC
- fedora 43: mandoc 1.14.6-12.fc43 Β· ISC AND BSD-2-Clause AND BSD-3-Clause
- fedora 44: mandoc 1.14.6-13.fc44 Β· ISC AND BSD-2-Clause AND BSD-3-Clause
- nixos 26.05: mandoc 1.14.6
- nixpkgs unstable: mandoc 1.14.6
- opensuse-leap 16.0: mandoc 1.14.6-160000.2.2 Β· ISC
- opensuse-leap 16.0: mandoc 1.14.6-160000.2.2 Β· ISC
- opensuse-leap 16.0: mandoc 1.14.6-160000.2.2 Β· ISC
- opensuse-leap 16.0: mandoc 1.14.6-160000.2.2 Β· ISC
- ubuntu questing: mandoc 1.14.6-4
- ubuntu resolute: mandoc 1.14.6-4build1 Β· ISC
- ubuntu stonking: mandoc 1.14.6-4build1 Β· ISC
- Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms