Section: HTML-XML-utils (1)
Updated: 10 Jul 2011Index
Return to Main Contents
hxwls - list links in an HTML file
command reads an HTML file (standard input by default) and prints out
all links it finds. The output is written to stdout.
The following options are supported:
Produce a long listing. Instead of just the URI,
prints three columns: the element name, the value of the REL
attribute, and the target URI.
Produce a tuple listing.
prints four columns: the URI of the document itself, the element name,
the value of the REL attribute, and the target URI.
Print relative URLs as they are, without converting them to absolute
- -b base
as the initial base URL. If there is a <base> element in the document,
it will override the -b option.
Output as HTML. The output will be listed in the form of <a> elements.
The following operand is supported:
The name or the URL of an HTML file. If absent, standard input is read instead.
The following exit values are returned:
- > 0
An error occurred in the parsing of the HTML file.
will try to correct the error and produce output anyway.
- SEE ALSO