1DBROWENUMERATE(1) User Contributed Perl Documentation DBROWENUMERATE(1)
2
3
4
6 dbrowenumerate - enumerate rows, starting from zero
7
9 dbrowenumerate
10
12 Add a new column ``count'', incremented for each row of data, starting
13 with zero. Use dbrowaccumulate for control over initial value or
14 increment; this module is just a wrapper around that.
15
17 -N or --new-name N
18 Name the new column N. Defaults to "count".
19
20 This module also supports the standard jdb options:
21
22 -d Enable debugging output.
23
24 -i or --input InputSource
25 Read from InputSource, typically a file name, or "-" for standard
26 input, or (if in Perl) a IO::Handle, Fsdb::IO or Fsdb::BoundedQueue
27 objects.
28
29 -o or --output OutputDestination
30 Write to OutputDestination, typically a file name, or "-" for
31 standard output, or (if in Perl) a IO::Handle, Fsdb::IO or
32 Fsdb::BoundedQueue objects.
33
34 --autorun or --noautorun
35 By default, programs process automatically, but Fsdb::Filter
36 objects in Perl do not run until you invoke the run() method. The
37 "--(no)autorun" option controls that behavior within Perl.
38
39 --help
40 Show help.
41
42 --man
43 Show full manual.
44
46 Input:
47 #h account passwd uid gid fullname homedir shell
48 johnh * 2274 134 John_Heidemann /home/johnh /bin/bash
49 greg * 2275 134 Greg_Johnson /home/greg /bin/bash
50 root * 0 0 Root /root /bin/bash
51 # this is a simple database
52
53 Command:
54 cat DATA/passwd.jdb | dbrowenumerate
55
56 Output:
57 #h account passwd uid gid fullname homedir shell count
58 johnh * 2274 134 John_Heidemann /home/johnh /bin/bash 0
59 greg * 2275 134 Greg_Johnson /home/greg /bin/bash 1
60 root * 0 0 Root /root /bin/bash 2
61 # this is a simple database
62 # | /home/johnh/BIN/DB/dbrowenumerate
63
65 Fsdb, dbrowaccumulate.
66
68perl v5.28.1 2016-01-04 DBROWENUMERATE(1)