1Fsdb::Filter::dbcolcopyUlsaesrt(C3o)ntributed Perl DocumFesndtba:t:iFoinlter::dbcolcopylast(3)
2
3
4

NAME

6       dbcolcopylast - create new columns that are copies of prior columns
7

SYNOPSIS

9           dbcolcopylast [-e EMPTY] [column...]
10

DESCRIPTION

12       For each COLUMN, create a new column copylast_COLUMN that is the last
13       value for that column---that is, the value of that column from the row
14       before.
15

OPTIONS

17       -e EmptyValue or --empty
18           Specify the value newly created columns get.
19
20       This module also supports the standard fsdb 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

SAMPLE USAGE

46   Input:
47           #fsdb test
48           a
49           b
50
51   Command:
52           cat data.fsdb | dbcolcopylast foo
53
54   Output:
55           #fsdb      test    foo
56           a       -
57           b       -
58

SEE ALSO

60       Fsdb.
61

CLASS FUNCTIONS

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