1DBCOLCOPYLAST(1) User Contributed Perl Documentation DBCOLCOPYLAST(1)
2
3
4
6 dbcolcopylast - create new columns that are copies of prior columns
7
9 dbcolcopylast [-e EMPTY] [column...]
10
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
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
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
60 Fsdb.
61
63 Copyright (C) 1991-2018 by John Heidemann <johnh@isi.edu>
64
65 This program is distributed under terms of the GNU general public
66 license, version 2. See the file COPYING with the distribution for
67 details.
68
69
70
71perl v5.32.0 2020-11-16 DBCOLCOPYLAST(1)