1Fsdb::Filter::dbcolrenaUmsee(r3)Contributed Perl DocumenFtsadtbi:o:nFilter::dbcolrename(3)
2
3
4

NAME

6       dbcolrename - change the names of columns in a fsdb schema
7

SYNOPSIS

9       dbcolrename OldName1 NewName1 [OldName2 NewName2] ...
10

DESCRIPTION

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

OPTIONS

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

SAMPLE USAGE

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

SEE ALSO

66       Fsdb.
67

CLASS FUNCTIONS

69   new
70           $filter = new Fsdb::Filter::dbcolrename(@arguments);
71
72       Create a new dbcolrename object, taking command-line arguments.
73
74   set_defaults
75           $filter->set_defaults();
76
77       Internal: set up defaults.
78
79   parse_options
80           $filter->parse_options(@ARGV);
81
82       Internal: parse command-line arguments.
83
84   setup
85           $filter->setup();
86
87       Internal: setup, parse headers.
88
89   run
90           $filter->run();
91
92       Internal: run over each rows.
93
95       Copyright (C) 1991-2018 by John Heidemann <johnh@isi.edu>
96
97       This program is distributed under terms of the GNU general public
98       license, version 2.  See the file COPYING with the distribution for
99       details.
100
101
102
103perl v5.28.1                      2018-02-17      Fsdb::Filter::dbcolrename(3)
Impressum