Fsdb::F...copylast(3)

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

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 EmptyValue or --empty β€” specify the value that the newly created columns get 🎁

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) a 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) a 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:

#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 πŸƒβ€β™€οΈ

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