DBFILECAT(1)
π¦ DBFILECAT(1) π¦
okay so this is dbfilecat(1) from the User Contributed Perl Documentation zone, and it's literally the "smush two files with the same schema together" bestie. it's giving file-glue realness. periodt. π
πΈ NAME πΈ
dbfilecat - concatenate two files with identical schema.
β¨ SYNOPSIS β¨
dbfilecat --input A.fsdb [--input B.fsdb...]
or
echo A.fsdb | dbfilecat --xargs
π DESCRIPTION π
okay so what it does: you give it all the input files, and it concatenates them into one result. We remove extra header lines, because we are not keeping the clutter. the way that it just drops those extra headers? iconic. π
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. iykyk. π«Ά
Inputs must have identical schemas β same columns, same column order, and same field separators. this is a hard vibe check, bestie, 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). fr fr. π
π 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. not me being obsessed with cleanup energy. π
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)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 π¦
π 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.
okay bye bestie π β this page is from perl v5.32.1, dated 2024-08-02. slay. π
π¦ 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