1DBCOLTYPE(1) User Contributed Perl Documentation DBCOLTYPE(1)
2
3
4
6 dbcoltype - define (or redefine) types for columns of an Fsdb file
7
9 dbcol [-v] [column type...]
10
12 Define the type of each column, where COLUMN and TYPE are pairs. Or,
13 with the "-v" option, redefine all types as string.
14
15 The data does not change (just the header).
16
18 -v or --clear-types
19 Remove definitions from columns that are listed, or from all
20 columns if none are listed. The effect is to restore types to
21 their default type of "a" (string).
22
23 and the standard fsdb options:
24
25 -d Enable debugging output.
26
27 -i or --input InputSource
28 Read from InputSource, typically a file, or - for standard input,
29 or (if in Perl) a IO::Handle, Fsdb::IO or Fsdb::BoundedQueue
30 objects.
31
32 -o or --output OutputDestination
33 Write to OutputDestination, typically a file, or - for standard
34 output, or (if in Perl) a IO::Handle, Fsdb::IO or
35 Fsdb::BoundedQueue objects.
36
37 --autorun or --noautorun
38 By default, programs process automatically, but Fsdb::Filter
39 objects in Perl do not run until you invoke the run() method. The
40 "--(no)autorun" option controls that behavior within Perl.
41
42 --header H
43 Use H as the full Fsdb header, rather than reading a header from
44 then input.
45
46 --help
47 Show help.
48
49 --man
50 Show full manual.
51
53 Input:
54 #fsdb account passwd uid gid fullname homedir shell
55 johnh * 2274 134 John_Heidemann /home/johnh /bin/bash
56 greg * 2275 134 Greg_Johnson /home/greg /bin/bash
57 root * 0 0 Root /root /bin/bash
58 # this is a simple database
59
60 Command:
61 cat DATA/passwd.fsdb account | dbcoltype uid l gid l
62
63 Output:
64 #fsdb account passwd uid:l gid:l fullname homedir shell
65 johnh * 2274 134 John_Heidemann /home/johnh /bin/bash
66 greg * 2275 134 Greg_Johnson /home/greg /bin/bash
67 root * 0 0 Root /root /bin/bash
68 # this is a simple database
69
71 dbcoldefine(1), dbcolcreate(1), Fsdb(3).
72
74 Copyright (C) 2022 by John Heidemann <johnh@isi.edu>
75
76 This program is distributed under terms of the GNU general public
77 license, version 2. See the file COPYING with the distribution for
78 details.
79
80
81
82perl v5.34.1 2022-04-04 DBCOLTYPE(1)