DBCOL(1)
π dbcol(1) β select columns from an Fsdb file π
okay so bestie, this is the manual page for dbcol, section 1, from the User Contributed Perl Documentation β and itβs literally all about selecting columns from an Fsdb file. no cap. π¦
β¨ NAME β¨
dbcol β select columns from an Fsdb file.
π SYNOPSIS π
dbcol [-v] [-e -] [column...]
π DESCRIPTION π
Okay so dbcol selects one or more columns from the input database. If a value is given for empty columns with the -e option, then any named columns which donβt exist will be created. Otherwise, non-existent columns are an error β not a vibe. π
Note: a safer way to create columns is dbcolcreate. periodt.
π OPTIONS π
-r,--relaxed-errorsβ Relaxed error checking: ignore columns that arenβt there. lowkey forgiving. π«Ά-v,--invert-matchβ Output all columns except those listed (likegrep -v). classic invert-match slay.-a,--allβ Output all columns, in addition to those listed. (Thus"-a foo"will move columnfooto the first column.) iconic rearrangement behavior.-e EmptyValue,--emptyβ Specify the value newly created columns get. this is the empty-value main character. β¨--saveoutput $OUT_REFβ Save output writer (for integration with other fsdb filters). iykyk.
and the standard fsdb options:
-dβ Enable debugging output.-i InputSource,--input InputSourceβ Read fromInputSource, typically a file, or-for standard input, or (if in Perl) aIO::Handle,Fsdb::IOorFsdb::BoundedQueueobjects.-o OutputDestination,--output OutputDestinationβ Write toOutputDestination, typically a file, 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)autorun"option controls that behavior within Perl.--header Hβ UseHas the full Fsdb header, rather than reading a header from then input. (yes, βthen inputβ is what the page says, bestie β copy-paste energy preserved π)--helpβ Show help.--manβ Show full manual.
π SAMPLE USAGE π
okay bestie, hereβs the little demo. watch it glow. π
π§ 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 | dbcol account
π§ Output:
#fsdb account
johnh
greg
root
# this is a simple database
# | dbcol account
π₯ SEE ALSO π₯
π 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.
π«Ά okay thatβs the whole page, bestie. this one came fromperl v5.32.1, dated2024-08-02, and the manual name isDBCOL(1)β slay and goodbye. π
π¦ 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