.\" Automatically generated by Pod::Man 4.11 (Pod::Simple 3.35) .\" .\" 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 .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . 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 "2019-02-02" "perl v5.28.1" "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 \s-1HTML\s0 table to Fsdb format. .PP The input is an \s-1HTML\s0 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 \s-1GNU\s0 general public license, version 2. See the file \s-1COPYING\s0 with the distribution for details.