1YAML_TO_DB(1)         User Contributed Perl Documentation        YAML_TO_DB(1)
2
3
4

NAME

6       yaml_to_db - convert a subset of YAML into fsdb
7

SYNOPSIS

9           yaml_to_db <source.yaml
10

DESCRIPTION

12       Converts a very limited subset of YAML into Fsdb format.
13
14       The input is YAML-format (not fsdb).  The input is parsed as YAML,
15       assuming the file is an array of dictionary entries.  We extract the
16       dictionary names and output this as an fsdb table.
17
18       The output is tab-separated fsdb.  (Someday more general field
19       separators should be supported.)
20

OPTIONS

22       This module also supports the standard fsdb options:
23
24       -d  Enable debugging output.
25
26       -i or --input InputSource
27           Read from InputSource, typically a file name, or "-" for standard
28           input, or (if in Perl) a IO::Handle, Fsdb::IO or Fsdb::BoundedQueue
29           objects.
30
31       -o or --output OutputDestination
32           Write to OutputDestination, typically a file name, or "-" for
33           standard output, or (if in Perl) a IO::Handle, Fsdb::IO or
34           Fsdb::BoundedQueue objects.
35
36       --autorun or --noautorun
37           By default, programs process automatically, but Fsdb::Filter
38           objects in Perl do not run until you invoke the run() method.  The
39           "--(no)autorun" option controls that behavior within Perl.
40
41       --help
42           Show help.
43
44       --man
45           Show full manual.
46

SAMPLE USAGE

48   Input:
49               - name: ACM
50                 role: sponsor
51                 alttext: ACM, the Association for Computing Machinery
52                 image: logos/acm-small.jpg
53                 link:  https://www.acm.org/
54                 date: 2016-01-01
55
56               - name: SIGCOMM
57                 role: sponsor
58                 alttext: SIGCOMM, ACM'S Special Interest Group on Communication
59                 image: logos/sigcommlogo.png
60                 link:  http://sigcomm.org
61                 date: 2016-01-02
62
63               - name: SIGMETRICS
64                 role: sponsor
65                 alttext: SIGMETRICS, ACM'S Special Interest Group on Performance Evaluation
66                 image: logos/sigmetrics-small.png
67                 link:  http://www.sigmetrics.org
68                 date: 2016-01-03
69
70   Command:
71               yaml_to_db <gnupod.yaml
72
73   Output:
74               #fsdb -F t alttext date image link name role
75               ACM, the Association for Computing Machinery    2016-01-01      logos/acm-small.jpg     https://www.acm.org/    ACM     sponsor
76               SIGCOMM, ACM'S Special Interest Group on Communication  2016-01-02      logos/sigcommlogo.png   http://sigcomm.org      SIGCOMM sponsor
77               SIGMETRICS, ACM'S Special Interest Group on Performance Evaluation      2016-01-03      logos/sigmetrics-small.png      http://www.sigmetrics.org       SIGMETRICS      sponsor
78               #   | yaml_to_db
79

SEE ALSO

81       Fsdb.
82
84       Copyright (C) 2011-2018 by John Heidemann <johnh@isi.edu>
85
86       This program is distributed under terms of the GNU general public
87       license, version 2.  See the file COPYING with the distribution for
88       details.
89
90
91
92perl v5.32.0                      2020-11-16                     YAML_TO_DB(1)
Impressum