Fsdb::F...oldefine(3)
π NAME π
dbcoldefine β okay so this one's whole job is: it slaps a fresh header on your plain text file and boom, now it's an Fsdb file. That's it. That's the gig. π
(also hi, you're reading the Fsdb::Filter::dbcoldefine manual page, section 3 of the perl docs β welcome bestie π«Ά)
β¨ SYNOPSIS β¨
dbcoldefine [-F x] [column...]
π¦ DESCRIPTION π¦
So basically this program writes a brand new header in front of your data, using whatever column names you hand it. And like β it is not checking your work. No validation of the data contents at all, none, zero, zip. π
It is literally up to you, the user, to verify that (aside from the header) the input datastream is a correctly formatted Fsdb file. The tool trusts you completely. Main character energy, honestly.
πΈ OPTIONS πΈ
-For--fsor--fieldseparators β specify the field separator. Pick your delimiter, bestie.--headerH β give the columns and the field separator as one full Fsdb header (like,#fsdband all of it π€). Heads up: this one can only be used alone, not with any other specifications. Solo act. π€
This module also supports the standard fsdb options, which are:
-dβ enable debugging output.-ior--inputInputSource β read from InputSource. Usually a file name, or-for standard input, or (if you're in Perl) anIO::Handle,Fsdb::IOorFsdb::BoundedQueueobject.-oor--outputOutputDestination β write to OutputDestination. Usually a file name, or-for standard output, or (if you're in Perl) anIO::Handle,Fsdb::IOorFsdb::BoundedQueueobject.--autorunor--noautorunβ by default programs just process automatically, butFsdb::Filterobjects in Perl do not run until you invoke therun()method. The--(no)autorunoption controls that behavior within Perl. β¨--helpβ show help.--manβ show the full manual.
π SAMPLE USAGE π
Input:
102400 4937974.964736
102400 4585247.875904
102400 5098141.207123
Command:
cat DATA/http_bandwidth | dbcoldefine size bw
Output:
#fsdb size bw
102400 4937974.964736
102400 4585247.875904
102400 5098141.207123
# | dbcoldefine size bw
Look at that header just appearing. Iconic. π
π SEE ALSO π
Fsdb. dbfilestripcomments.
π CLASS FUNCTIONS π
new
$filter = new Fsdb::Filter::dbcoldefine(@arguments);
Create a new dbcoldefine object, taking command-line arguments. Fresh object, fresh vibes.
set_defaults
$filter->set_defaults();
Internal: set up defaults.
parse_options
$filter->parse_options(@ARGV);
Internal: parse command-line arguments.
setup
$filter->setup();
Internal: setup, parse headers.
run
$filter->run();
Internal: run over each rows.
π AUTHOR and COPYRIGHT π
Copyright (C) 1991-2016 by John Heidemann <johnh@isi.edu>
This program is distributed under terms of the GNU general public license, version 2. See the file COPYING with the distribution for details. π
okay that's the whole page, ily, go define some columns bestie π§π
perl v5.32.1 β 2024-08-02 β User Contributed Perl Documentation β Fsdb::Filter::dbcoldefine(3), signing off ππ«Ά
π¦ where this page comes from
- epel 9: perl-Fsdb 2:3.9-1.el9 Β· GPLv2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms