hlist
This script automates the process of creating a list of links to each of the subsections of a web page. It reads through a file that you specify, which is assumed to contain properly formed HTML, identifies all of the header tags in it (<H1>...</H1>, etc.), and prints a list of the contents of those tags, each on a separate line. Depending on the options you specify on the command line, it may indent those items, surround them in HTML list markup, surround them in link tags, and guess at the target of those link tags. If you use named anchors (<A NAME="...">...</A>) instead of ID attributes (<H2 id="">), I recommend adding them after you run the script. This is because the script preserves HTML inside the header tags, in case it's important formatting.
Required files: