hxprintlinks(1)

hxprintlinks1

Add a numbered list of links at the end of an html file

Usage

hxprintlinks [-b base] file-or-URL

Overview

hxprintlinks adds a numbered list of all URLs (links) found in the file to the end of the HTML file.

Options

The following options are supported:

-b base

Make the URLs in the list absolute, using base as the base URL.

Operands

The following operand is supported:

file-or-URL

The file to work on. If the argument is absent, or if it is - (a single dash), the document is read from the standard input.

Releases

9 releases since Debian 6.0 (Squeeze); the text changed 2 times.

  1. 6.0
  2. 7–8
  3. 9–Arch

Bugs

The option -b is probably of limited use. It makes the links in the generated list absolute, but doesn't change the other links. For a more flexible solution, use hxcopy(1) on the output of hxprintlinks. E.g., instead of

hxprintlinks -b http://example.org/base/ myfile.html

use

hxprintlinks myfile.html | hxcopy -i http://example.org/base -o .

From html-xml-utils 8.8-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.