CSV_TO_DB(1)
π CSV_TO_DB(1) β csv_to_db π
okay so this is the CSV_TO_DB(1) page from the User Contributed Perl Documentation corner of the universe πβ¨, and it's all about csv_to_db, bestie. Buckle up, it's giving useful.
β¨ NAME β¨
csv_to_db β convert comma-separated-value data into fsdb π
πΈ SYNOPSIS πΈ
csv_to_db <source.csv
π¦ DESCRIPTION π¦
Converts a comma-separated-value data stream to Fsdb format. no cap.
The input is CSV-format (not fsdb). The first row is taken to be the names of the columns. π
The output is two-space-separated fsdb. (Someday more general field separators should be supported.) Fsdb fields are normalized version of the CSV file: spaces are converted to single underscores. periodt.
π OPTIONS π
-F,--fs, or--fieldseparator Sβ specify the field (column) separator asS. Seedbfilealterfor valid field separators. Default isS(double space). π
This module also supports the standard fsdb options:
-dβ enable debugging output. π-ior--input InputSourceβ read fromInputSource, typically a file name, or"-"for standard input, or (if in Perl) aIO::Handle,Fsdb::IOorFsdb::BoundedQueueobjects. π₯-oor--output OutputDestinationβ write toOutputDestination, 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:
paper,papertitle,reviewer,reviewername,score1,score2,score3,score4,score5
1,"test, paper",2,Smith,4,4,,,
2,other paper,3,Jones,3,3,,,
π Command:
csv_to_db
π Output:
#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 - - -
# | csv_to_db
π₯ SEE ALSO π₯
Fsdb. and db_to_csv. β that's the related reading, bestie. π«Ά
π AUTHOR and COPYRIGHT π
Copyright (C) 1991-2008 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, bestie β page CSV_TO_DB(1), source/version perl v5.32.1, dated 2024-08-02. byeee ππ«Άβ¨
π¦ 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