DBCOLCREATE(1)
π dbcolcreate β aka DBCOLCREATE(1), from the User Contributed Perl Documentation corner of the universe β¨
okay so bestie, picture this: you've got a table, and it's missing a column. tragic. iconic of you to fix it with dbcolcreate, which just... makes new columns. that's the whole gig. it lives in the Perl man pages (User Contributed Perl Documentation, to be precise) and it's lowkey a lifesaver π«Ά
β¨ NAME β¨
dbcolcreate β create new columns, periodt π
πΈ SYNOPSIS πΈ
dbcolcreate NewColumn1 [NewColumn2]
or, if you're feeling fancy and want a default value in there:
dbcolcreate -e DefaultValue NewColumnWithDefault
π¦ DESCRIPTION π¦
Create columns NewColumn1, etc. β with an optional DefaultValue if you're into that π. that's it, that's the vibe. no cap.
π OPTIONS π
-eEmptyValue,--emptyβ tells it what value your freshly created columns should get. your new columns, your rules β¨-f,--firstβ puts all the new columns at the front of every row, main character energy π. by default? they go at the end of each row instead.--no-recreate-fatalβ by default, trying to create a column that already exists is an error (drama, honestly π). with--no-recreate-fatal, we just ignore the re-creation instead.
This module also supports the standard fsdb options, bestie:
-dβ enable debugging output π-iInputSource,--inputβ read from InputSource, typically a file name, or-for standard input, or (if in Perl) aIO::Handle,Fsdb::IOorFsdb::BoundedQueueobjects.-oOutputDestination,--outputβ write to OutputDestination, typically a file name, or-for standard output, or (if in Perl) aIO::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 π§--headerH β use H as the full Fsdb header, rather than reading a header from then input. (yes, "then input" β that's the original wording, leaving it exactly as-is, don't come for me π)--helpβ show help π«Ά--manβ show full manual π
β SAMPLE USAGE β
π Input:
#fsdb test
a
b
π Command:
cat data.fsdb | dbcolcreate foo
π Output:
#fsdb test foo
a -
b -
see how foo just appeared? ate. π₯
π SEE ALSO π
Fsdb. β go check it out, 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.
ngl, credit where credit is due: John Heidemann has been holding it down since 1991, and this is GNU GPL v2 territory, so read COPYING before you get creative π
okay that's the whole page, love u, bye π
perl v5.32.1 π 2024-08-02 β that's the version and date, stamped at the very bottom like a little time capsule from the day this manpage last got its glow-up. slay. β¨π
π¦ 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