1DBCOLRENAME(1) User Contributed Perl Documentation DBCOLRENAME(1)
2
3
4
6 dbcolrename - change the names of columns in a fsdb schema
7
9 dbcolrename OldName1 NewName1 [OldName2 NewName2] ...
10
12 Dbcolrename changes the names of columns in a fsdb schema, mapping
13 OldName1 to NewName1, and so on for multiple pairs of column names.
14
15 Note that it is valid to do "overlapping" renames like "dbcolrename a b
16 b a".
17
19 No non-standard options.
20
21 This module also supports the standard fsdb options:
22
23 -d Enable debugging output.
24
25 -i or --input InputSource
26 Read from InputSource, typically a file name, or "-" for standard
27 input, or (if in Perl) a IO::Handle, Fsdb::IO or Fsdb::BoundedQueue
28 objects.
29
30 -o or --output OutputDestination
31 Write to OutputDestination, typically a file name, or "-" for
32 standard output, or (if in Perl) a IO::Handle, Fsdb::IO or
33 Fsdb::BoundedQueue objects.
34
35 --autorun or --noautorun
36 By default, programs process automatically, but Fsdb::Filter
37 objects in Perl do not run until you invoke the run() method. The
38 "--(no)autorun" option controls that behavior within Perl.
39
40 --help
41 Show help.
42
43 --man
44 Show full manual.
45
47 Input:
48 #fsdb account passwd uid gid fullname homedir shell
49 johnh * 2274 134 John_Heidemann /home/johnh /bin/bash
50 greg * 2275 134 Greg_Johnson /home/greg /bin/bash
51 root * 0 0 Root /root /bin/bash
52 # this is a simple database
53
54 Command:
55 cat DATA/passwd.fsdb | dbcolrename fullname first_last
56
57 Output:
58 #fsdb account passwd uid gid first_last homedir shell
59 johnh * 2274 134 John_Heidemann /home/johnh /bin/bash
60 greg * 2275 134 Greg_Johnson /home/greg /bin/bash
61 root * 0 0 Root /root /bin/bash
62 # this is a simple database
63 # | dbcolrename fullname first_last
64
66 Fsdb.
67
69 Copyright (C) 1991-2018 by John Heidemann <johnh@isi.edu>
70
71 This program is distributed under terms of the GNU general public
72 license, version 2. See the file COPYING with the distribution for
73 details.
74
75
76
77perl v5.30.1 2020-01-30 DBCOLRENAME(1)