dbrowenumerate - enumerate rows, starting from zero
dbrowenumerate
Add a new column ``count'', incremented for each row of data, starting with zero. Use dbrowaccumulate for control over initial value or increment; this module is just a wrapper around that.
Name the new column N. Defaults to count.
count
This module also supports the standard jdb options:
Enable debugging output.
Read from InputSource, typically a file name, or - for standard input, or (if in Perl) a IO::Handle, Fsdb::IO or Fsdb::BoundedQueue objects.
-
Write to OutputDestination, typically a file name, or - for standard output, or (if in Perl) a IO::Handle, Fsdb::IO or Fsdb::BoundedQueue objects.
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.
--(no)autorun
Show help.
Show full manual.
#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
cat DATA/passwd.jdb | dbrowenumerate
#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
Fsdb, dbrowaccumulate.
To install Fsdb, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Fsdb
CPAN shell
perl -MCPAN -e shell install Fsdb
For more information on module installation, please visit the detailed CPAN module installation guide.