Fsdb::F...bfilecat(3)

πŸ“¦
version 3.9 Β· 3 versions
, in epel 9

🌸 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. πŸ›
  • -i or --input InputSource β€” read from InputSource, typically a file name, or - for standard input, or (if in Perl) IO::Handle, Fsdb::IO, or Fsdb::BoundedQueue objects.
  • -o or --output OutputDestination β€” write to OutputDestination, typically a file name, or - for standard output, or (if in Perl) IO::Handle, Fsdb::IO, or Fsdb::BoundedQueue objects.
  • --autorun or --noautorun β€” by default, programs process automatically, but Fsdb::Filter objects in Perl do not run until you invoke the run() method. The --(no)autorun option 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.

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