Fsdb::F...b_to_csv(3)
πΈ NAME πΈ
okay so welcome to the Fsdb::F...b_to_csv(3) page β yes, a User Contributed Perl Documentation moment π β and the main character is db_to_csv, here to convert fsdb to the comma-separated-value file-format π
β¨ SYNOPSIS β¨
db_to_csv [-C]
π¦ DESCRIPTION π¦
So weβre gonna Covert an existing fsdb file to comma-separated value format πβ¨ yes bestie, thatβs the word on the page, weβre owning it.
Input is fsdb format.
Output is CSV-format plain text (not fsdb). periodt.
π OPTIONS π
-Cor<--omit-comments>β Also strip all comments.
This module also supports the standard fsdb options:
-dβ Enable debugging output.-ior--inputInputSource β Read from InputSource, typically a file name, or"-"for standard input, or (if in Perl) aIO::Handle,Fsdb::IOorFsdb::BoundedQueueobjects.-oor--outputOutputDestination β Write to OutputDestination, typically a file name, or"-"for standard output, or (if in Perl) aIO::Handle,Fsdb::IOorFsdb::BoundedQueueobjects.--autorunor--noautorunβ By default, programs process automatically, butFsdb::Filterobjects in Perl do not run until you invoke therun()method. The"--(no)autorun"option controls that behavior within Perl.--helpβ Show help.--manβ Show full manual.
π SAMPLE USAGE π
π Input:
#fsdb -F S paper papertitle reviewer reviewername score1 score2 score3 score4 score5
1 test, paper 2 Smith 4 4 - - -
2 other paper 3 Jones 3 3 - - -
2 input double space 3 Jones 3 3 - - -
# | csv_to_db
π Command:
cat data.fsdb | db_to_csv
β Output:
paper,papertitle,reviewer,reviewername,score1,score2,score3,score4,score5
1,"test, paper",2,Smith,4,4,-,-,-
2,"other paper",3,Jones,3,3,-,-,-
2,"input double space",3,Jones,3,3,-,-,-
# | csv_to_db
# | db_to_csv
π SEE ALSO π
Fsdb.dbfilealter.csv_to_db
like, go check those out too, iykyk π
π§ CLASS FUNCTIONS π§
πΈ new
$filter = new Fsdb::Filter::db_to_csv(@arguments);
Create a new db_to_csv object, taking command-line arguments. slay.
πΈ 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 row.
π AUTHOR and COPYRIGHT π
Copyright (C) 2007-2018 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 vibe, bestie π«Ά this was Fsdb::F...b_to_csv(3), footer energy: perl v5.32.1, dated 2024-08-02 β now go convert some fsdb and absolutely ate β¨π
π¦ 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