.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.45) .\" .\" 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 "DB_TO_HTML_TABLE 1" .TH DB_TO_HTML_TABLE 1 2023-07-20 "perl v5.38.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 db_to_html_table \- convert db to an HTML table .SH SYNOPSIS .IX Header "SYNOPSIS" .Vb 1 \& db_to_html_table [\-g N] dest.html .Ve .SH DESCRIPTION .IX Header "DESCRIPTION" Covert an existing dbtable to an HTML table. The output is a fragment of an HTML page; we assume the user fills in the rest (head and body, etc.). .PP Input is fsdb format. .PP Output is HTML code (\fInot\fR fsdb), with HTML-specific characters (less than, greater than, ampersand) are escaped. (The fsdb\-1.x version assumed input was ISO\-8859\-1; we now assume both input and output are unicode. This change is considered a feature of the 21st century.) .SH OPTIONS .IX Header "OPTIONS" .IP "\fB\-g N\fR or <\-\-group\-count N>" 4 .IX Item "-g N or <--group-count N>" Color groups of \fIN\fR consecutive rows with one background color. .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 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 .SS Command: .IX Subsection "Command:" .Vb 1 \& cat data.fsdb | db_to_csv \-g 3 .Ve .SS Output: .IX Subsection "Output:" .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 .SH "SEE ALSO" .IX Header "SEE ALSO" Fsdb. dbcolneaten. dbfileadjust. html_table_to_db. .SH "AUTHOR and COPYRIGHT" .IX Header "AUTHOR and COPYRIGHT" Copyright (C) 2007\-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.