Fsdb::F...copylast(3)
okay bestie, welcome to the Fsdb::F...copylast(3) page from the User Contributed Perl Documentation π
this is the one for dbcolcopylast, and it's lowkey iconic.
β¨ NAME β¨
dbcolcopylast β create new columns that are copies of prior columns π«Ά
π¦ SYNOPSIS π¦
dbcolcopylast [-e EMPTY] [column...]
π DESCRIPTION π
for each COLUMN, you get a brand-new column called copylast_COLUMN β¨ and that new column is the last value for that column β like, the value of that column from the row before. periodt. π
π OPTIONS π
-e EmptyValueor--emptyβ specify the value that the newly created columns get π
this module also supports the standard fsdb options:
-dβ enable debugging output π-ior--input InputSourceβ read from InputSource, typically a file name, or"-"for standard input, or (if in Perl) aIO::Handle,Fsdb::IOorFsdb::BoundedQueueobjects π₯-oor--output OutputDestinationβ 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)autorun"option controls that behavior within Perl βοΈ--helpβ show help πββοΈ--manβ show full manual π
πΈ SAMPLE USAGE πΈ
Input:
#fsdb test
a
b
Command:
cat data.fsdb | dbcolcopylast foo
Output:
#fsdb test foo
a -
b -
π₯ SEE ALSO π₯
Fsdb. π
π CLASS FUNCTIONS π
new
$filter = new Fsdb::Filter::dbcolcopylast(@arguments);
create a new dbcolcopylast 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 π
okay that's the whole vibe, bestie π this page is from perl v5.32.1, dated 2024-08-02, and it's the Fsdb::F...copylast(3) manual β mwah πβ¨
π¦ 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