HXWLS(1)
π hxwls β the HTML-XML-utils link lister π
okay bestie, gather round, because hxwls is literally the friend who reads your HTML and tells you about every single link in it. no gatekeeping. no judgment. just links. β¨
β¨ NAME β¨
hxwls β list links in an HTML file π¦
πΈ SYNOPSIS πΈ
hxwls [ -l ] [ -t ] [ -r ] [ -h ] [ -a ] [ -b base ] [ file ]
π DESCRIPTION π
so the way this works is: hxwls reads an HTML file (and if you don't hand it one, it just reads standard input, no big deal, it's flexible like that π) and then prints out all the links it finds. the output goes to stdout. that's it. that's the whole vibe. π
π OPTIONS π
here's everything it supports, and yes we're going through all of them, because we don't skip:
-lβ long listing energy π. instead of just handing you the URI,hxwlsprints three columns: the element name, the value of theRELattribute, and the target URI.-tβ the tuple listing, aka the even more listing π«Ά. this one prints four columns: the URI of the document itself, the element name, the value of theRELattribute, and the target URI.-rβ keeps it real π. prints relative URLs as they are, no converting them into absolute URLs. lowkey just respecting them as they came.-bbase β sets the initial base URL to base. but heads up bestie: if there's a<base>element in the document, it will override the-boption. the document has main character energy here, ngl.-hβ outputs as HTML π. the output comes out in the form of<a>elements. cute, right?-aβ converts any IRIs (Internationalized Resource Identifiers) to ASCII-only URIs β¨. what that means: any non-ASCII characters in the path of a URI get encoded as%-escaped octets, and non-ASCII characters in the domain name become punycode. quick note though β punycode encoding is only available ifhxwlsis compiled with libidn support. so like, depends on the build, iykyk.
π¦ OPERANDS π¦
the one and only:
- file β the name or the URL of an HTML file. if it's absent, standard input is read instead π.
π DIAGNOSTICS π
the exit values, and we care about them:
0β successful completion. slay. π> 0β an error occurred in the parsing of the HTML file. and honestly?hxwlswill try to correct the error and produce output anyway π. resilient queen.
π SEE ALSO π
go hang out with the rest of the squad:
asc2xml(1), hxnormalize(1), hxnum(1), xml2asc(1)
and that's the whole page, bestie!! this is HTML-XML-utils version 7.x, dated 10 Jul 2011 β yes she's been iconic since 2011 and she's still serving π°οΈπ. now go list some links. periodt. π β¨
π¦ 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