DBROWENUMERATE(1)
π NAME π
Okay so dbrowenumerate β straight from the User Contributed Perl Documentation crew β is here to enumerate rows, starting from zero. Thatβs it, thatβs the job, and it slays at it π
β¨ SYNOPSIS β¨
dbrowenumerate
π DESCRIPTION π
Add a new column "count", incremented for each row of data, starting with zero. If you want control over the initial value or the increment, use dbrowaccumulate β this module is just a wrapper around that. No cap, itβs a tiny icon. π«Ά
πΈ OPTIONS πΈ
-Nor--new-nameN β name the new column N. Defaults to"count".
This module also supports the standard jdb options:
-dβ enable debugging output.-ior--inputInputSource β read from InputSource, typically a file name, or-for standard input, or (if in Perl) aIO::Handle,Fsdb::IOorFsdb::BoundedQueueobjects.-oor--outputOutputDestination β write to OutputDestination, typically a file name, 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)autorun"option controls that behavior within Perl.--helpβ show help.--manβ show full manual.
π¦ SAMPLE USAGE π¦
Input:
#h 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.jdb | dbrowenumerate
Output:
#h account passwd uid gid fullname homedir shell count
johnh * 2274 134 John_Heidemann /home/johnh /bin/bash 0
greg * 2275 134 Greg_Johnson /home/greg /bin/bash 1
root * 0 0 Root /root /bin/bash 2
# this is a simple database
# | /home/johnh/BIN/DB/dbrowenumerate
π SEE ALSO π
Fsdb, dbrowaccumulate.
π CLASS FUNCTIONS π
The original page has this heading but no body text under it, so weβre keeping it adorably empty and not inventing anything. π«Ά
This iconic page is from perl v5.32.1, dated 2024-08-02. Bye bestie, go enumerate those rows πβ¨
π¦ 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