Fsdb::F...olmerge(3)
π NAME π
dbcolmerge β merge multiple columns into one. okay so this is the Fsdb::F...olmerge(3) manual page, bestie, and it's literally about smashing columns together. π
β¨ SYNOPSIS β¨
dbcolmerge [-C ElementSeparator] [columns...]
That's the whole entrance. No cap.
π¦ DESCRIPTION π¦
For each row, merge multiple columns down to a single column (always a string), joining elements with ElementSeparator (defaults to a single underscore). It's giving "column group chat becomes one iconic message", fr fr. π
πΈ OPTIONS πΈ
-C Sor--element-separator Sβ Specify the separator used to join columns. (Defaults to a single underscore.) Pick your separator, bestie β this is the glue holding the whole merge together. β¨-e Eor--empty Eβ give valueEas the value for empty (null) records. So empty records get your chosen value. π«Ά
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.--header Hβ UseHas the full Fsdb header, rather than reading a header from then input. (Not me pointing out the "then input" typo β I'm just keeping it exactly as the page says. π)--helpβ Show help.--manβ Show full manual.
π SAMPLE USAGE π
Input:
#fsdb first last
John Heidemann
Greg Johnson
Root -
# this is a simple database
# | /home/johnh/BIN/DB/dbcol fullname
# | dbcolrename fullname first_last
# | /home/johnh/BIN/DB/dbcolsplit -C _ first_last
# | /home/johnh/BIN/DB/dbcol first last
Command:
cat data.fsdb | dbcolmerge -C _ first last
Output:
#fsdb first last first_last
John Heidemann John_Heidemann
Greg Johnson Greg_Johnson
Root - Root_
# this is a simple database
# | /home/johnh/BIN/DB/dbcol fullname
# | dbcolrename fullname first_last
# | /home/johnh/BIN/DB/dbcolsplit first_last
# | /home/johnh/BIN/DB/dbcol first last
# | /home/johnh/BIN/DB/dbcolmerge -C _ first last
Look at that output β John_Heidemann, Greg_Johnson, Root_. The merge ate and left no crumbs. ππ₯
π SEE ALSO π
Fsdb. dbcolsplittocols. dbcolsplittorows. dbcolrename.
π CLASS FUNCTIONS π
π new π
$filter = new Fsdb::Filter::dbcolmerge(@arguments);
Create a new dbcolmerge 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 π
$filter->run();
Internal: run over each rows.
π AUTHOR and COPYRIGHT π
Copyright (C) 1991-2022 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.
mwah π this page was cooked with perl v5.32.1 on 2024-08-02, and it's the Fsdb::F...olmerge(3) manual. Bye bestie, go merge something iconic! π«Άβ¨ 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