.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "HTML_TABLE_TO_DB 1" .TH HTML_TABLE_TO_DB 1 2023-01-20 "perl v5.36.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME html_table_to_db \- convert HTML tables into fsdb .SH SYNOPSIS .IX Header "SYNOPSIS" .Vb 1 \& html_table_to_db dest.fsdb .Ve .SH DESCRIPTION .IX Header "DESCRIPTION" Converts a HTML table to Fsdb format. .PP The input is an HTML table (\fInot\fR fsdb). Column names are taken from \f(CW\*(C`TH\*(C'\fR elements, or defined as \f(CW\*(C`column0\*(C'\fR through \f(CW\*(C`columnN\*(C'\fR if no such elements appear. .PP The output is two-space-separated fsdb. (Someday more general field separators should be supported.) Fsdb fields are normalized version of the html file: multiple spaces are compressed to one. .PP This module also supports the standard fsdb options: .IP \fB\-d\fR 4 .IX Item "-d" Enable debugging output. .IP "\fB\-i\fR or \fB\-\-input\fR InputSource" 4 .IX Item "-i or --input InputSource" Read from InputSource, typically a file name, or \f(CW\*(C`\-\*(C'\fR for standard input, or (if in Perl) a IO::Handle, Fsdb::IO or Fsdb::BoundedQueue objects. .IP "\fB\-o\fR or \fB\-\-output\fR OutputDestination" 4 .IX Item "-o or --output OutputDestination" Write to OutputDestination, typically a file name, or \f(CW\*(C`\-\*(C'\fR for standard output, or (if in Perl) a IO::Handle, Fsdb::IO or Fsdb::BoundedQueue objects. .IP "\fB\-\-autorun\fR or \fB\-\-noautorun\fR" 4 .IX Item "--autorun or --noautorun" By default, programs process automatically, but Fsdb::Filter objects in Perl do not run until you invoke the \fBrun()\fR method. The \f(CW\*(C`\-\-(no)autorun\*(C'\fR option controls that behavior within Perl. .IP \fB\-\-help\fR 4 .IX Item "--help" Show help. .IP \fB\-\-man\fR 4 .IX Item "--man" Show full manual. .SH "SAMPLE USAGE" .IX Header "SAMPLE USAGE" .SS Input: .IX Subsection "Input:" .Vb 7 \& \& \& \& \& \& \&
account passwd uid gid fullname homedir shell
johnh * 2274 134 John & Ampersand /home/johnh /bin/bash
greg * 2275 134 Greg < Lessthan /home/greg /bin/bash
root * 0 0 Root ; Semi /root /bin/bash
four * 1 1 Fourth Row /home/four /bin/bash
.Ve .SS Command: .IX Subsection "Command:" .Vb 1 \& html_table_to_db .Ve .SS Output: .IX Subsection "Output:" .Vb 5 \& #fsdb \-F S account passwd uid gid fullname homedir shell \& johnh * 2274 134 John & Ampersand /home/johnh /bin/bash \& greg * 2275 134 Greg < Lessthan /home/greg /bin/bash \& root * 0 0 Root ; Semi /root /bin/bash \& four * 1 1 Fourth Row /home/four /bin/bash .Ve .SH "SEE ALSO" .IX Header "SEE ALSO" Fsdb. db_to_html_table. .SH "AUTHOR and COPYRIGHT" .IX Header "AUTHOR and COPYRIGHT" Copyright (C) 1991\-2015 by John Heidemann .PP This program is distributed under terms of the GNU general public license, version 2. See the file COPYING with the distribution for details.