Fsdb::F...bfilecat(3)
πΈ NAME πΈ
dbfilecat β concatenate two files with identical schema. Thatβs the whole assignment, bestie. This is the Fsdb::F...bfilecat(3) page from User Contributed Perl Documentation, and weβre keeping every fact while making it cute. π
β¨ SYNOPSIS β¨
Okay so you run it like this:
dbfilecat --input A.fsdb [--input B.fsdb...]
or
echo A.fsdb | dbfilecat --xargs
π¦ DESCRIPTION π¦
Concatenate all provided input files, producing one result. We remove extra header lines. π
Inputs can both be specified with --input, or one can come from standard input and the other from --input. With --xargs, each line of standard input is a filename for input. Yep, one filename per line β group-chat rules. π
Inputs must have identical schemas β columns, column order, and field separators. No cap.
Itβs like dbmerge, but no worries about sorting, and with no arguments we read standard input (although thatβs not very useful).
π OPTIONS π
π General option π
--xargsβ expect that input filenames are given, one-per-line, on standard input. (In this case, merging can start incrementally.) β¨--removeinputsβ delete the source files after they have been consumed. Defaults off, leaving the inputs in place. π«Ά
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)IO::Handle,Fsdb::IO, orFsdb::BoundedQueueobjects.-oor--outputOutputDestination β write to OutputDestination, typically a file name, or-for standard output, or (if in Perl)IO::Handle,Fsdb::IO, orFsdb::BoundedQueueobjects.--autorunor--noautorunβ by default, programs 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 full manual.
π SAMPLE USAGE π
π Input π
File a.fsdb:
#fsdb cid cname
11 numanal
10 pascal
File b.fsdb:
#fsdb cid cname
12 os
13 statistics
π Command π
dbfilecat --input a.fsdb --input b.fsdb
β Output β
#fsdb cid cname
11 numanal
10 pascal
12 os
13 statistics
# | dbmerge --input a.fsdb --input b.fsdb
π₯ SEE ALSO π₯
dbmerge(1), Fsdb(3) β go read those too, iykyk. π
π§ CLASS FUNCTIONS π§
π new π
$filter = new Fsdb::Filter::dbmerge(@arguments);
Create a new object, taking command-line arguments. β¨
π 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_one π
$filter->_run_one();
Internal: stream out one input stream.
π run π
$filter->run();
Internal: run over each rows.
π AUTHOR and COPYRIGHT π
Copyright (C) 2013-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.
And thatβs the whole entire Fsdb::F...bfilecat(3) moment, bestie β this page is from perl v5.32.1, dated 2024-08-02, and the footer says Fsdb::F...bfilecat(3) too. Periodt. π
β¨
π¦ 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