1HXWLS(1) HTML-XML-utils HXWLS(1)
2
3
4
6 hxwls - list links in an HTML file
7
9 hxwls [ -l ] [ -t ] [ -r ] [ -h ] [ -b base ] [ file ]
10
12 The hxwls command reads an HTML file (standard input by default) and
13 prints out all links it finds. The output is written to stdout.
14
16 The following options are supported:
17
18 -l Produce a long listing. Instead of just the URI, hxwls prints
19 three columns: the element name, the value of the REL
20 attribute, and the target URI.
21
22 -t Produce a tuple listing. hxwls prints four columns: the URI
23 of the document itself, the element name, the value of the
24 REL attribute, and the target URI.
25
26 -r Print relative URLs as they are, without converting them to
27 absolute URLs.
28
29 -b base Use base as the initial base URL. If there is a <base> ele‐
30 ment in the document, it will override the -b option.
31
32 -h Output as HTML. The output will be listed in the form of <a>
33 elements.
34
36 The following operand is supported:
37
38 file The name or the URL of an HTML file. If absent, standard
39 input is read instead.
40
42 The following exit values are returned:
43
44 0 Successful completion.
45
46 > 0 An error occurred in the parsing of the HTML file. hxwls
47 will try to correct the error and produce output anyway.
48
50 asc2xml(1), hxnormalize(1), hxnum(1), xml2asc(1)
51
52
53
545.x 21 Nov 2008 HXWLS(1)