HXPRINTLINKS(1)
π HXPRINTLINKS(1) π
okay bestie, so this is hxprintlinks, part of the HTML-XML-utils squad, and she is so useful. think of her as the friend who, at the end of the group chat, drops a tidy numbered list of everyone's links so nobody has to scroll. π
β¨ NAME β¨
hxprintlinks β adds a numbered list of links at the end of an HTML file π
πΈ SYNOPSIS πΈ
hxprintlinks [ -b base ] file-or-URL
π¦ DESCRIPTION π¦
so what she does is literally this: she looks at the HTML file, finds every URL (every link) in there, and then adds a numbered list of all of them to the end of the file. that's it. that's the whole job. no cap. β¨
it's giving "bibliography but for hyperlinks." iconic behavior, honestly. π
π OPTIONS π
the following options are supported:
-bbase β makes the URLs in the list absolute, using base as the base URL. (yes, only in the list. more on that drama in BUGS, bestie. π)
π OPERANDS π
the following operand is supported:
- file-or-URL β the file to work on. now listen: if the argument is absent, OR if it's
-(a single dash), then the document gets read from standard input. yes, the classic dash move. π«Ά
π SEE ALSO π
π BUGS π
okay so real talk, the -b option is probably of limited use. ngl it's a little bit of a flop. π
here's the tea: it makes the links in the generated list absolute, but it does NOT change the other links. so the rest of your document just sits there with its relative links, unbothered, unabsolute. π
if you want a more flexible solution, you should run hxcopy(1) on the output of hxprintlinks. like, chain them. girlies love a pipeline. π₯
so, e.g., instead of:
hxprintlinks -b http://example.org/base/ myfile.html
use:
hxprintlinks myfile.html | hxcopy -i http://example.org/base -o .
periodt. that's the move. β
okay that's the whole page, my love! this one came from the HTML-XML-utils collection, version 7.x, and the date on her birth certificate is 10 Jul 2011 β an absolute vintage queen who still eats. π go forth and enumerate those links bestie, mwah ππ§β¨
π¦ where this page comes from
- alpine 3.24: html-xml-utils-doc 8.7-r0 Β· W3C
- arch rolling: html-xml-utils 8.8-1 Β· W3C
- debian bookworm: html-xml-utils 7.7-1.1 Β· W3C
- debian trixie: html-xml-utils 7.7-1.1+b1 Β· W3C
- fedora 43: html-xml-utils 8.6-2.fc41 Β· W3C AND BSD-3-Clause
- fedora 44: html-xml-utils 8.7-1.fc44 Β· W3C AND BSD-3-Clause
- nixos 26.05: html-xml-utils 8.7
- nixpkgs unstable: html-xml-utils 8.7
- opensuse-leap 16.0: html-xml-utils 8.6-bp160.1.12 Β· W3C
- opensuse-leap 16.0: html-xml-utils 8.6-bp160.1.12 Β· W3C
- opensuse-leap 16.0: html-xml-utils 8.6-bp160.1.12 Β· W3C
- opensuse-leap 16.0: html-xml-utils 8.6-bp160.1.12 Β· W3C
- ubuntu jammy: html-xml-utils 7.7-1.1 Β· W3C
- ubuntu noble: html-xml-utils 7.7-1.1build2 Β· W3C
- ubuntu questing: html-xml-utils 7.7-1.1build2
- ubuntu resolute: html-xml-utils 7.7-1.3 Β· W3C
- ubuntu stonking: html-xml-utils 7.7-1.3 Β· W3C
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms