1Fsdb::Filter::dbcoldefiUnsee(r3)Contributed Perl DocumenFtsadtbi:o:nFilter::dbcoldefine(3)
2
3
4
6 dbcoldefine - define the columns of a plain text file to make it an
7 Fsdb file
8
10 dbcoldefine [-F x] [column...]
11
13 This program writes a new header before the data with the specified
14 column names. It does not do any validation of the data contents; it
15 is up to the user to verify that, other than the header, the input
16 datastream is a correctly formatted Fsdb file.
17
19 -F or --fs or --fieldseparator s
20 Specify the field separator.
21
22 --header H
23 Give the columns and field separator as a full Fsdb header
24 (including "#fsdb"). Can only be used alone, not with other
25 specifications.
26
27 This module also supports the standard fsdb options:
28
29 -d Enable debugging output.
30
31 -i or --input InputSource
32 Read from InputSource, typically a file name, or "-" for standard
33 input, or (if in Perl) a IO::Handle, Fsdb::IO or Fsdb::BoundedQueue
34 objects.
35
36 -o or --output OutputDestination
37 Write to OutputDestination, typically a file name, or "-" for
38 standard output, or (if in Perl) a IO::Handle, Fsdb::IO or
39 Fsdb::BoundedQueue objects.
40
41 --autorun or --noautorun
42 By default, programs process automatically, but Fsdb::Filter
43 objects in Perl do not run until you invoke the run() method. The
44 "--(no)autorun" option controls that behavior within Perl.
45
46 --help
47 Show help.
48
49 --man
50 Show full manual.
51
53 Input:
54 102400 4937974.964736
55 102400 4585247.875904
56 102400 5098141.207123
57
58 Command:
59 cat DATA/http_bandwidth | dbcoldefine size bw
60
61 Output:
62 #fsdb size bw
63 102400 4937974.964736
64 102400 4585247.875904
65 102400 5098141.207123
66 # | dbcoldefine size bw
67
69 Fsdb. dbfilestripcomments
70
72 new
73 $filter = new Fsdb::Filter::dbcoldefine(@arguments);
74
75 Create a new dbcoldefine object, taking command-line arguments.
76
77 set_defaults
78 $filter->set_defaults();
79
80 Internal: set up defaults.
81
82 parse_options
83 $filter->parse_options(@ARGV);
84
85 Internal: parse command-line arguments.
86
87 setup
88 $filter->setup();
89
90 Internal: setup, parse headers.
91
92 run
93 $filter->run();
94
95 Internal: run over each rows.
96
98 Copyright (C) 1991-2016 by John Heidemann <johnh@isi.edu>
99
100 This program is distributed under terms of the GNU general public
101 license, version 2. See the file COPYING with the distribution for
102 details.
103
104
105
106perl v5.38.0 2023-07-20 Fsdb::Filter::dbcoldefine(3)