DBCOLNEATEN(1)

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

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, --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, --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, --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 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.

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