DBCOLCOPYLAST(1)
π dbcolcopylast β the dbcolcopylast(1) page, but make it make sense π
okay so bestie, buckle up, because dbcolcopylast is genuinely one of those tiny little tools that eats π
and leaves no crumbs. it's a perl thing, it lives in the User Contributed Perl Documentation section, and it does exactly one job and does it iconically. let's get into it β¨
β¨ NAME β¨
dbcolcopylast β creates new columns that are straight-up copies of the columns before them. that's it. that's the whole vibe. π«Ά
πΈ SYNOPSIS πΈ
dbcolcopylast [-e EMPTY] [column...]
like, you hand it some column names, you get new columns back. lowkey magic, highkey useful. π¦
π DESCRIPTION π
so for each COLUMN you list, it makes a brand-new column called copylast_COLUMN β and that new column holds the last value for that column, meaning the value that column had in the row before. it's giving "remember what you were just doing" energy. the way it justβ¦ remembers. obsessed. π
π OPTIONS π
-eEmptyValue,--emptyβ tells it what value your shiny newly created columns should get. pick your filler, bestie, it's your world. π
this module also supports the standard fsdb options, and yes, we're listing every single one because we don't skip:
-dβ turns on debugging output. for when you need to see what's actually going on in there. π-i,--inputInputSource β read from InputSource. usually that's a file name, or-for standard input, or β if you're in Perl βIO::Handle,Fsdb::IOorFsdb::BoundedQueueobjects. flexible queen behavior. π-o,--outputOutputDestination β write to OutputDestination. again: usually a file name, or-for standard output, or β if you're in Perl βIO::Handle,Fsdb::IOorFsdb::BoundedQueueobjects. π--autorun,--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. so like, it's the "do I start myself or do you start me" switch. β--helpβ show help. the classic. π«Ά--manβ show the full manual. hi, that's this. π
π§ SAMPLE USAGE π§
Input:
#fsdb test
a
b
Command:
cat data.fsdb | dbcolcopylast foo
Output:
#fsdb test foo
a -
b -
see how foo shows up fresh and empty-ish because there's no prior row to copy from? that's the -e situation right there. slay. π₯
π SEE ALSO π
Fsdb. go read it, it's the whole ecosystem, iykyk. π
π 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.
fr fr, that's the whole page β nothing added, nothing dropped, every flag accounted for. no cap. πΈ
and finally, the cute little sign-off bit at the bottom: this is from perl v5.32.1, dated 2024-08-02, and it's page DBCOLCOPYLAST(1). 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