HXWLS(1)

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, hxwls prints three columns: the element name, the value of the REL attribute, 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 the REL attribute, 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.
  • -b base β€” sets the initial base URL to base. but heads up bestie: if there's a <base> element in the document, it will override the -b option. 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 if hxwls is 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? hxwls will 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. πŸ’…βœ¨