DBCOLCOPYLAST(1)

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

πŸŽ€ 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 🌈

  • -e EmptyValue, --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, --input InputSource β€” read from InputSource. usually that's a file name, or - for standard input, or β€” if you're in Perl β€” IO::Handle, Fsdb::IO or Fsdb::BoundedQueue objects. flexible queen behavior. πŸ’œ
  • -o, --output OutputDestination β€” write to OutputDestination. again: usually a file name, or - for standard output, or β€” if you're in Perl β€” IO::Handle, Fsdb::IO or Fsdb::BoundedQueue objects. πŸ“
  • --autorun, --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. 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. πŸ’…


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