htdump(1)

🌸 htdump(1) β€” the general commands manual page, but make it cute 🌸

okay bestie, welcome to htdump πŸ’– this is a General Commands Manual entry and honestly? she's a whole vibe.


✨ NAME ✨

htdump β€” write out an ASCII-text version of the document database 🫢


✨ SYNOPSIS ✨

htdump [options]

✨ DESCRIPTION ✨

So htdump writes out an ASCII-text version of the document database, and it does it in the same form as the -t option of htdig. that's it, that's the girl. no cap. πŸ’…


✨ OPTIONS ✨

  • -a β€” Use alternate work files. this tells htdump to append .work to database files, which lets it operate on a second set of databases. lowkey iconic for keeping your stuff separate ✨
  • -c configfile β€” Use the specified configfile instead of the default. pick your own adventure πŸŽ€
  • -v β€” Verbose mode. and ngl bestie? this doesn't have much effect πŸ™ˆ

✨ File Formats ✨

πŸ’Ύ Document Database

Every single line in the file starts with the document id, followed by a list of fieldname : value separated by tabs. and the fields always appear in the order listed below β€” the order is the moment, don't fight it:

  • u β€” URL πŸ”—
  • t β€” Title
  • a β€” State (0 = normal, 1 = not found, 2 = not indexed, 3 = obsolete) πŸ‘‘
  • m β€” Last modification time as reported by the server
  • s β€” Size in bytes
  • H β€” Excerpt
  • h β€” Meta description
  • l β€” Time of last retrieval
  • L β€” Count of the links in the document (outgoing links) πŸ“€
  • b β€” Count of the links to the document (incoming links or backlinks) πŸ“₯
  • c β€” HopCount of this document
  • g β€” Signature of the document used for duplicate-detection πŸ•΅οΈ
  • e β€” E-mail address to use for a notification message from htnotify πŸ“§
  • n β€” Date to send out a notification e-mail message
  • S β€” Subject for a notification e-mail message
  • d β€” The text of links pointing to this document. (e.g. <a href="docURL">description</a>)
  • A β€” Anchors in the document (i.e. <A NAME=...)

πŸ’Ύ Word Database

okay so here's the tea: while htdump and htload don't deal with the word database directly, it's worth mentioning it here because you need to deal with it when copying the ASCII databases from one system to another. πŸ‘€

The initial word database produced by htdig is already in ASCII format, and a binary version of it is produced by htmerge, for use by htsearch. So, when you copy over the ASCII version of the document database produced by htdump, you need to copy over the wordlist as well, then run htload to make the binary document database on the target system, followed by running htmerge to make the word index. that's the whole pipeline bestie, respect it 🫢

Each line in the word list file starts with the word, followed by a list of fieldname : value separated by tabs. The fields always appear in the order listed below, with the last two being optional:

  • i β€” Document ID
  • l β€” Location of word in document (1 to 1000)
  • w β€” Weight of word based on scoring factors
  • c β€” Count of word's appearances in document, if more than 1
  • a β€” Anchor number if word occurred after a named anchor

✨ FILES ✨

  • /etc/htdig/htdig.conf β€” The default configuration file. πŸŽ€
  • /var/lib/htdig/db.docs β€” The default ASCII document database file. πŸ“„
  • /var/lib/htdig/db.wordlist β€” The default ASCII word database file. πŸ“

✨ SEE ALSO ✨

Please refer to the HTML pages (in the htdig-doc package) /usr/share/doc/htdig-doc/html/index.html and the manual pages htdig(1) , and htload(1) for a detailed description of ht://Dig and its commands. go read them, they ate πŸ’…


✨ AUTHOR ✨

This manual page was written by Stijn de Bekker, based on the HTML documentation of ht://Dig. πŸ‘‘


and that's a wrap bestie!! πŸ¦‹ this page is dated 15 October 2001 and it comes from htdump(1) β€” yeah the footer literally just says that again, she's consistent. periodt πŸ’–βœ¨