DBCOLTYPE(1)
π NAME π
okay so you're looking at DBCOLTYPE(1), the manual page for dbcoltype β and bestie, it's giving header-glow-up energy. π
dbcoltype β define (or redefine) types for columns of an Fsdb file.
β¨ SYNOPSIS β¨
copying this literally, bestie:
dbcol [-v] [column type...]
π DESCRIPTION π
Define the type of each column, where COLUMN and TYPE are pairs. Or, with the -v option, redefine all types as string.
The data does not change (just the header). So like β the rows stay exactly where they are, no cap; it's a header-only makeover. β¨
πΈ OPTIONS πΈ
-vor--clear-typesβ remove definitions from columns that are listed, or from all columns if none are listed. The effect is to restore types to their default type of"a"(string).
and the standard fsdb options, bestie:
-dβ enable debugging output.-ior--inputInputSource β read from InputSource, typically a file, or-for standard input, or (if in Perl) aIO::Handle,Fsdb::IOorFsdb::BoundedQueueobjects.-oor--outputOutputDestination β write to OutputDestination, typically a file, 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)autorunoption controls that behavior within Perl.--headerH β use H as the full Fsdb header, rather than reading a header from then input.--helpβ show help.--manβ show full manual.
π¦ SAMPLE USAGE π¦
π Input:
#fsdb account passwd uid gid fullname homedir shell
johnh * 2274 134 John_Heidemann /home/johnh /bin/bash
greg * 2275 134 Greg_Johnson /home/greg /bin/bash
root * 0 0 Root /root /bin/bash
# this is a simple database
π Command:
cat DATA/passwd.fsdb account | dbcoltype uid l gid l
π Output:
#fsdb account passwd uid:l gid:l fullname homedir shell
johnh * 2274 134 John_Heidemann /home/johnh /bin/bash
greg * 2275 134 Greg_Johnson /home/greg /bin/bash
root * 0 0 Root /root /bin/bash
# this is a simple database
β SEE ALSO β
Go check out dbcoldefine(1), dbcolcreate(1), and Fsdb(3). π
π AUTHOR and COPYRIGHT π
Copyright (C) 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.
Manual footer energy: perl v5.32.1, dated 2024-08-02 β DBCOLTYPE(1) out, bye bestie, 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