DBCOLNEATEN(1)
okay bestie, welcome to the DBCOLNEATEN(1) page β a User Contributed Perl Documentation moment for dbcolneaten. Buckle up, because we're making Fsdb columns look neat under a monospaced font, and it's gonna slay. π
β¨
πΈ NAME πΈ
dbcolneaten β pretty-print columns of Fsdb data (assuming a monospaced font).
π¦ SYNOPSIS π¦
dbcolneaten [-E] [field_settings]
β¨ DESCRIPTION β¨
So dbcolneaten arranges things so your Fsdb data appears in neat columns if you view it with a monospaced font. The way it does this? It pads out each field with spaces to line up the next field. Iconic. π
Field settings are of the form:
field op value
OP is >=, =, or <=, specifying that the width of that FIELD must be more, equal, or less than that VALUE. Yes, that's a width vibe check. π
dbcolneaten runs in O(1) memory but disk space proportional to the size of data. Lowkey efficient, highkey disk-hungry. π«Ά
π OPTIONS π
-E,--noeolnβ Omit padding for the last column (at the end-of-the-line). This is the default behavior. π-e,--eolnβ Do padding and include an extra field separator after the last column. Useful if you're interactively adding a column. β¨
This module also supports the standard fsdb options:
-dβ Enable debugging output.-i,--inputInputSource β Read from InputSource, typically a file name, or-for standard input, or (if in Perl) aIO::Handle,Fsdb::IOorFsdb::BoundedQueueobjects.-o,--outputOutputDestination β 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.--helpβ Show help.--manβ Show full manual.
π SAMPLE USAGE π
π§ Input:
#fsdb fullname homedir uid gid
Mr._John_Heidemann_Junior /home/johnh 2274 134
Greg_Johnson /home/greg 2275 134
Root /root 0 0
# this is a simple database
# | dbcol fullname homedir uid gid
π§ Command:
dbcolneaten
π§ Output:
#fsdb -F s fullname homedir uid gid
Mr._John_Heidemann_Junior /home/johnh 2274 134
Greg_Johnson /home/greg 2275 134
Root /root 0 0
# this is a simple database
# | dbcol fullname homedir uid gid
# | dbcolneaten
π BUGS π
Real talk: it does not handle tab separators correctly. That's the bug, bestie. Don't come for me, come for the tabs. π
π SEE ALSO π
Fsdb.
π AUTHOR and COPYRIGHT π
Copyright (C) 1991-2018 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.
That's the whole DBCOLNEATEN(1) page, bestie β source/version perl v5.32.1, dated 2024-08-02. Now go make those columns neat. Periodt. ππ
π¦ 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